How to make an application icon for macOS using
iconset
&iconutil
In the realm of death by a thousand cuts, please stop using std::endl
and remove it from code.
Per cppreference.com, std::endl
"inserts a newline character into the output sequence... and flushes it". Okay, so why exactly shouldn't it be used???
There have been numerous articles written about endl
that echo the sentiment against using it. Here's some:
- Don't use std::endl: https://accu.org/journals/overload/27/149/sharpe_2619/
- "std::endl" vs "\n": https://stackoverflow.com/questions/213907/stdendl-vs-n
Seems like this has come up for me enough in discussing C++ with others, that it might help to put together the information in this gist.
Standard C++ has since C++11 required that block-scope variables with static or thread storage duration get initialized in a thread safe way. Besides there being a StackOverflow answer - to a related question - showing some example assembly for C++11 that includes thread safe guards, there's also the C++ standard documents themselves.
What follows is the specific requirement by versions of the standard.