2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-24 05:32:13 +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

@@ -18,7 +18,7 @@ void print(const boost::system::error_code& /*e*/,
{
if (*count < 5)
{
std::cout << *count << "\n";
std::cout << *count << std::endl;
++(*count);
t->expires_at(t->expires_at() + boost::posix_time::seconds(1));
@@ -38,7 +38,7 @@ int main()
io.run();
std::cout << "Final count is " << count << "\n";
std::cout << "Final count is " << count << std::endl;
return 0;
}