Daily bit(e) of C++ | C++17 constexpr if
Daily bit(e) of C++ #151, The C++17 compile time version of the if statement: constexpr if.
C++17 constexpr if replaces most cases where macros would have to be used.
It also simplifies generic functions and metaprogramming and works with C++20 concepts to allow code to adjust based on features supported by the type of the function arguments.