aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Enum.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Enum.h b/lib/Enum.h
index a34b5d3..d4ffe19 100644
--- a/lib/Enum.h
+++ b/lib/Enum.h
@@ -264,6 +264,8 @@ public:
}
};
+template<typename E> typename Enum<E>::sdata Enum<E>::staticData;
+
/**
* Helper macro to construct an enumeration wrapper Enum<E> for
* a specific enum type.
@@ -303,12 +305,12 @@ public:
* data for this Enumeration wrapper.
*/
#define ENUM_DEFINITION(EnumName, initWith) \
-template < EnumName > Enum< EnumName >::sdata Enum< EnumName >::staticData; \
+template Enum< EnumName >::sdata Enum< EnumName >::staticData; \
/** \
* actual definition of the constructor for the static data. \
* This is called implicitly by the definition above. \
*/ \
-Enum<EnumName>::sdata::sdata() : \
+template <> Enum<EnumName>::sdata::sdata() : \
name(#EnumName),defaultValue(initWith)
/**