diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2015-10-08 15:47:07 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2015-10-08 15:48:02 +0200 |
| commit | e783549b3427e907b78ab41b192a3539819760c0 (patch) | |
| tree | 30b397e5e86cf1f3d19ac95029c9cc93873177b1 /src/CRSMConfig.hpp | |
| parent | dbd4d15144c727f967911d41d798758bfb9bad03 (diff) | |
| download | manager-e783549b3427e907b78ab41b192a3539819760c0.tar.gz manager-e783549b3427e907b78ab41b192a3539819760c0.zip | |
Fix enum-spezialication of CRSMConfigValue
Diffstat (limited to 'src/CRSMConfig.hpp')
| -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> |
