diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/CRSMConfig.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CRSMConfig.hpp b/src/CRSMConfig.hpp index 788b7e8..5c9adb9 100644 --- a/src/CRSMConfig.hpp +++ b/src/CRSMConfig.hpp @@ -225,10 +225,10 @@ public: }; template<typename Type> -class CRSMConfigValue<Type, typename std::enable_if<std::is_enum<Type>::value>::type> : CRSMConfigValue<typename std::underlying_type<Type>::type> { +class CRSMConfigValue<Type, typename std::enable_if<std::is_enum<Type>::value>::type> : public CRSMConfigValue<typename std::underlying_type<Type>::type> { using UndType = typename std::underlying_type<Type>::type; public: - CRSMConfigValue(Type& config) : CRSMConfigValue<UndType>::CRSMConfigValue(static_cast<UndType&>(config)) {} + CRSMConfigValue(Type& config) : CRSMConfigValue<UndType>::CRSMConfigValue((UndType&)config) {} }; template<typename Type> |
