Fix build on GCC < 4.7
authorJohannes Schanda <schanda@itestra.de>
Wed, 23 Jan 2013 09:09:15 +0000 (10:09 +0100)
committerJohannes Schanda <schanda@itestra.de>
Wed, 23 Jan 2013 09:09:51 +0000 (10:09 +0100)
src/CommonAPI/SerializableVariant.h
src/CommonAPI/SerializableVariant.hpp

index d7af954..29cf6b2 100644 (file)
@@ -55,9 +55,8 @@ struct MaxSize<_Type, _Types...> {
                                     current_type_size : next_type_size;
 };
 
-template<typename _SearchType, typename _CurrentType, typename ... _RestTypes>
-struct VariantTypeSelector: VariantTypeSelector<_SearchType, _RestTypes...> {
-};
+template<typename _SearchType, typename ... _RestTypes>
+struct VariantTypeSelector;
 
 template<typename _SearchType, typename ... _RestTypes>
 struct VariantTypeSelector<_SearchType, _SearchType, _RestTypes...> {
index b42e4de..7d9d34b 100644 (file)
@@ -216,7 +216,7 @@ private:
     const bool clear_;
 };
 
-template<typename _U, typename ... _Types>
+template<typename ... _Types>
 struct TypeSelector;
 
 template<typename _U>