summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schanda <schanda@itestra.de>2013-01-23 10:09:15 +0100
committerJohannes Schanda <schanda@itestra.de>2013-01-23 10:09:51 +0100
commita952758730b4e405f5196b0a38d5b903ae3cb18b (patch)
tree1197023d81dbc8f24cd6fe1a30d771feefc50bd3
parent988eff46b7d987cefaf70ff2a1d415bf19d7e983 (diff)
downloadgenivi-common-api-runtime-a952758730b4e405f5196b0a38d5b903ae3cb18b.tar.gz
Fix build on GCC < 4.7
-rw-r--r--src/CommonAPI/SerializableVariant.h5
-rw-r--r--src/CommonAPI/SerializableVariant.hpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/CommonAPI/SerializableVariant.h b/src/CommonAPI/SerializableVariant.h
index d7af954..29cf6b2 100644
--- a/src/CommonAPI/SerializableVariant.h
+++ b/src/CommonAPI/SerializableVariant.h
@@ -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...> {
diff --git a/src/CommonAPI/SerializableVariant.hpp b/src/CommonAPI/SerializableVariant.hpp
index b42e4de..7d9d34b 100644
--- a/src/CommonAPI/SerializableVariant.hpp
+++ b/src/CommonAPI/SerializableVariant.hpp
@@ -216,7 +216,7 @@ private:
const bool clear_;
};
-template<typename _U, typename ... _Types>
+template<typename ... _Types>
struct TypeSelector;
template<typename _U>