From 43f378c6b32c72169f8bba697ec3bf719b578cc7 Mon Sep 17 00:00:00 2001 From: Cleroth Date: Sun, 6 Aug 2017 11:04:41 +0200 Subject: [PATCH] Avoid `std::endl` :) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4d9ca05..dfa89b4 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10687,7 +10687,7 @@ Requires messy cast-and-macro-laden code to get working right. void error(int severity) { - std::cerr << std::endl; + std::cerr << '\n' << std::flush; std::exit(severity); }