3 ms·
>You can't put runtime assert in constexpr function. As of C++17 you can: http://en.cppreference.com/w/cpp/error/assert http://en.cppreference.com/w/cpp/error/
by smitherfield 9y ago
>You can't put runtime assert in constexpr function.
As of C++17 you can: http://en.cppreference.com/w/cpp/error/assert http://en.cppreference.com/w/cpp/error/assert
You can also throw exceptions in constexpr functions since C++14.