diff options
Diffstat (limited to 'libs/asio/example/cpp03/tutorial/timer5')
-rw-r--r-- | libs/asio/example/cpp03/tutorial/timer5/timer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/asio/example/cpp03/tutorial/timer5/timer.cpp b/libs/asio/example/cpp03/tutorial/timer5/timer.cpp index 6e87c54f1..71ddad4d3 100644 --- a/libs/asio/example/cpp03/tutorial/timer5/timer.cpp +++ b/libs/asio/example/cpp03/tutorial/timer5/timer.cpp @@ -2,7 +2,7 @@ // timer.cpp // ~~~~~~~~~ // -// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -29,14 +29,14 @@ public: ~printer() { - std::cout << "Final count is " << count_ << "\n"; + std::cout << "Final count is " << count_ << std::endl; } void print1() { if (count_ < 10) { - std::cout << "Timer 1: " << count_ << "\n"; + std::cout << "Timer 1: " << count_ << std::endl; ++count_; timer1_.expires_at(timer1_.expires_at() + boost::posix_time::seconds(1)); @@ -48,7 +48,7 @@ public: { if (count_ < 10) { - std::cout << "Timer 2: " << count_ << "\n"; + std::cout << "Timer 2: " << count_ << std::endl; ++count_; timer2_.expires_at(timer2_.expires_at() + boost::posix_time::seconds(1)); |