2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-24 17:42:08 +00:00

Use std::endl in tutorial to ensure output is flushed.

This commit is contained in:
Christopher Kohlhoff
2015-03-19 23:49:25 +11:00
parent 2580addfc0
commit 878b787fce
5 changed files with 9 additions and 9 deletions

View File

@@ -25,14 +25,14 @@ public:
~printer()
{
std::cout << "Final count is " << count_ << "\n";
std::cout << "Final count is " << count_ << std::endl;
}
void print()
{
if (count_ < 5)
{
std::cout << count_ << "\n";
std::cout << count_ << std::endl;
++count_;
timer_.expires_at(timer_.expires_at() + boost::posix_time::seconds(1));