18 #ifndef COMMON_UNDERLYING_H 19 #define COMMON_UNDERLYING_H 21 #include <type_traits> 26 constexpr
typename std::underlying_type<E>::type
29 return static_cast<typename std::underlying_type<E>::type
> (val);
constexpr std::underlying_type< E >::type to_underlying(E val) noexcept