Really fix compile problems on older GCC
authorJohannes Schanda <schanda@itestra.de>
Wed, 23 Jan 2013 14:26:34 +0000 (15:26 +0100)
committerJohannes Schanda <schanda@itestra.de>
Wed, 23 Jan 2013 14:26:34 +0000 (15:26 +0100)
src/CommonAPI/SerializableVariant.h
src/CommonAPI/SerializableVariant.hpp

index 29cf6b2..b7524ed 100644 (file)
@@ -114,7 +114,7 @@ public:
                     typename std::enable_if<!std::is_same<_Type, Variant>::value>::type* = 0);
 
     template <typename _Type>
-    const typename VariantTypeSelector<_Type, _Types...>::type& get() const;
+    const _Type& get() const;
 
     inline uint8_t getValueType() const {
        return valueType_;
index 7d9d34b..4ff73d2 100644 (file)
@@ -408,7 +408,7 @@ typename std::enable_if<!std::is_same<_Type, Variant<_Types...>>::value>::type*)
 
 template<typename ... _Types>
 template<typename _Type>
-const typename VariantTypeSelector<_Type, _Types...>::type & Variant<_Types...>::get() const {
+const _Type & Variant<_Types...>::get() const {
     typedef typename TypeSelector<_Type, _Types...>::type selected_type_t;
     uint8_t cType = TypeIndex<_Types...>::template get<selected_type_t>();
     if (cType == valueType_) {