|
You are here |
jguegant.github.io | ||
| | | | |
www.reedbeta.com
|
|
| | | | | Pixels and polygons and shaders, oh my! | |
| | | | |
www.cppstories.com
|
|
| | | | | When you see an article about new C++ features, most of the time you'll have a description of major elements. Looking at C++17, there are a lot of posts (including articles from this blog) about structured bindings, filesystem, parallel algorithms, if constexpr, std::optional, std::variant... and other prominent C++17 additions. But how about some smaller parts? | |
| | | | |
cplusplus.github.io
|
|
| | | | | ||
| | | | |
www.foonathan.net
|
|
| | | Let me share a useful insight with you: constexpr is a platform. Just like you write code that targets Windows or a microcontroller, you write code that targets compile-time execution. In both cases you restrict yourself to the subset of C++ that works on your target platform, use conditional compilation if your code needs to be portable, and execute it on the desired target platform. You can thus view constexpr as another platform you can target; it just so happens to be run by your compiler. This insig... | ||