remove redundant flush() from example:

`<<std::endl` already flushes the stream; no need for a separate call.
This commit is contained in:
Andrzej Krzemieński
2017-07-07 14:36:45 +02:00
committed by Vinnie Falco
parent 1c9c87f93c
commit d6bac17bff
2 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,7 @@ Version 74:
* Remove common/file_body.hpp * Remove common/file_body.hpp
* Add file_posix * Add file_posix
* Fix Beast include directories for cmake targets * Fix Beast include directories for cmake targets
* remove redundant flush() from example
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -25,7 +25,6 @@ int main()
[](std::string what, beast::error_code ec) [](std::string what, beast::error_code ec)
{ {
std::cerr << what << ": " << ec.message() << std::endl; std::cerr << what << ": " << ec.message() << std::endl;
std::cerr.flush();
return EXIT_FAILURE; return EXIT_FAILURE;
}; };