Re:A Guide to Undefined Behavior in C and C++ (2010)
by nemetroid on Monday March 17, 2025 @04:33PM
(#43392470)
Ending your string literal with \n is much easier than using std::endl.
[ Parent
| on HN ]
Re:A Guide to Undefined Behavior in C and C++ (2010)
by AlotOfReading on Monday March 17, 2025 @10:49PM
(#43395286)
The comment was about bracket notation versus .at()
My only opinion on the \n versus std::endl discussion is that people set overly aggressive linting rules that always flag endl even when flush is intended.