Assert and Constexpr in C++11
Here’s a simple question: in C++11 what’s the best way to put debug checks in constexpr functions? Since assert is not constexpr, the obvious doesn’t work: constexpr bool in_range(int val, int min, int max) { assert(min <= max); // OOPS, Continue reading Assert and Constexpr in C++11