18#ifndef __FPSDK_COMMON_TYPES_HPP__
19#define __FPSDK_COMMON_TYPES_HPP__
45template <typename T, typename = typename std::enable_if<std::is_enum<T>::value, T>::type>
46constexpr typename std::underlying_type<T>::type
EnumToVal(T enum_val)
48 return static_cast<typename std::underlying_type<T>::type
>(enum_val);
constexpr std::underlying_type< T >::type EnumToVal(T enum_val)
Convert enum class constant to the underlying integral type value.