From e783549b3427e907b78ab41b192a3539819760c0 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 8 Oct 2015 15:47:07 +0200 Subject: Fix enum-spezialication of CRSMConfigValue --- src/CRSMConfig.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CRSMConfig.hpp') 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 -class CRSMConfigValue::value>::type> : CRSMConfigValue::type> { +class CRSMConfigValue::value>::type> : public CRSMConfigValue::type> { using UndType = typename std::underlying_type::type; public: - CRSMConfigValue(Type& config) : CRSMConfigValue::CRSMConfigValue(static_cast(config)) {} + CRSMConfigValue(Type& config) : CRSMConfigValue::CRSMConfigValue((UndType&)config) {} }; template -- cgit v1.2.3-54-g00ecf