if constexpr ( .... ) { . . . } else if constexpr ( ... ) { . . . } else { std::terminate_compilation(); }