use constexpr switch instead of ?:

follow up on comment in code -- replace ?: in constexpr context with switch now which is supported since C++14

Merge request reports

Loading