diff options
author | Reuben Thomas <rrt@sc3d.org> | 2005-08-06 12:10:18 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2005-08-06 12:10:18 +0000 |
commit | 51ffd01291f32c687998adc159b78e4e4d87112c (patch) | |
tree | 15701bf94c9903455052145a991ba250e00da55a /lib | |
parent | 6f072875895678d6e6b5bf5e17ce41378c064091 (diff) | |
download | plptools-51ffd01291f32c687998adc159b78e4e4d87112c.tar.gz plptools-51ffd01291f32c687998adc159b78e4e4d87112c.tar.bz2 plptools-51ffd01291f32c687998adc159b78e4e4d87112c.zip |
Fix for gcc 4.0 compatibility from Petr Ostadal.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Enum.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) /** |