2 ms·
constexpr "if" statements (C++20) are also a game-changer.
by _zagj 2y ago
constexpr "if" statements (C++20) are also a game-changer.
- boguscoder 2y agoThose are c++17
- pjmlp 2y agoInitially, C++20 and C++23 extended its use cases, and combined with concepts is a pretty sweet spot for compile time metaprogramming without SFINAE or tag dispatch tricks. Much better than having yet another syntax for macros.