cpp_weekly
cpp_weekly copied to clipboard
The official C++ Weekly Repository. Code samples and notes of future / past episodes will land here at various times. PR's will be accepted in some cases.
**Channel** C++Weekly **Topics** I would love to see some examples where code optimization optimizes "bad" code but not good code. An example that I've observed with `-O3`: ```cpp void print_int(std::ostream...
**Channel** C++Weekly **Topics** `static const` variables look innocuous, but they can have subtle correctness and performance issues, especially for local (function scope) variables. We've been taught to `constexpr` all the...