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.
https://github.com/kthohr/gcem Note: this is available on compiler-explorer too * It's C++11 - so lots of recursion * If you were making a C++20 fork of it, you'd probably want make...
https://en.cppreference.com/w/cpp/utility/forward_like (it's useful for deducing this)
It's harder than you think it should be to use correctly, but sometimes it's necessary, so let's write a little file reader utility? Maybe make it strongly typed even? That'd...
This is effectively what you have to do to do constexpr vector-like things. Placement new is not yet constexpr (C++26) and you cannot change pointer types at compile time until...
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2741r3.pdf
**Channel** C++Weekly **Topics** * REPLs (Read-Eval-Print-Loop) * Benefits of C++ REPL (what advanced capabilities and quality of life features they provide) * Current status of REPLs for C++ * Cling:...
https://cmake.org/cmake/help/latest/module/GenerateExportHeader.html
https://github.com/lefticus/cpp_weekly/blob/fb91f97876cb5ad479e1667aff3d03e7adb4592d/parallel_algorithms/game_of_life.cpp#L56
https://github.com/lefticus/cpp_weekly/blob/fb91f97876cb5ad479e1667aff3d03e7adb4592d/parallel_algorithms/game_of_life.cpp#L68