Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
collapse_template_statics.lib.cpp
Go to the documentation of this file.
1
2
3
24// also defined in COLLAPSE_TEMPLATE_STATICS.cpp
25template <class T>
26struct S
27{
28 // multiple instances of `t' must be collapsed
29 static T t;
30};
31
32template <class T>
34
35
36#if defined (_WIN32) && defined (_DLL)
37__declspec (dllexport)
38#endif // _WIN32 && _DLL
39int bar ()
40{
41 // S<int>::t instantiated and modified in COLLAPSE_TEMPLATE_STATICS.cpp
42 return S<int>::t++;
43}
#define T
Definition 17.names.cpp:163
#define t
Definition 17.names.cpp:136
__declspec(dllimport) void __stdcall InitializeCriticalSection(_RWSTD_CRITICAL_SECTION *)