blob: f3477eb455ce1316b8dea939d6d7b4c837e6c685 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff -Nur plptools-0.13.orig/lib/Enum.h plptools-0.13/lib/Enum.h
--- plptools-0.13.orig/lib/Enum.h 2005-04-16 17:21:47.000000000 +0200
+++ plptools-0.13/lib/Enum.h 2005-08-17 13:57:14.000000000 +0200
@@ -264,6 +264,8 @@
}
};
+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 @@
* 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)
/**
|