Skip to content

Refactor: Avoid `std::endl` where it's not necessary

Alex Turbov requested to merge zaufi/cmake:feature/cleanup-endls-1 into master

The std::endl manipulator, except inserting \n character, also performs os.flush(), which may lead to undesired effects (like disk I/O in the middle of forming data strings). For the std::stringstream it also has no meaning. Also in this changeset:

  • replace multiple operator<< calls on a string literal w/ the only call and the only (bigger) string literal;
  • replace one character string literal used in operator<< w/ a char literal ;

Topic-rename: cleanup-endls-1

Edited by Brad King

Merge request reports