From 51ffd01291f32c687998adc159b78e4e4d87112c Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sat, 6 Aug 2005 12:10:18 +0000 Subject: Fix for gcc 4.0 compatibility from Petr Ostadal. --- lib/Enum.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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 Enum::sdata Enum::staticData; + /** * Helper macro to construct an enumeration wrapper Enum 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::sdata::sdata() : \ +template <> Enum::sdata::sdata() : \ name(#EnumName),defaultValue(initWith) /** -- cgit v1.2.3