Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
EXPORT.cpp
Go to the documentation of this file.
1// checking for exported templates
2
3
25#include "config.h"
26
27#ifndef _RWSTD_NO_EXPORT_KEYWORD
28
29// establish a dependency on EXPORT_KEYWORD.cpp which must be
30// compiled first since it defines the exported function template
31// LDOPTS = EXPORT_KEYWORD.o
32#endif // _RWSTD_NO_EXPORT_KEYWORD
33
34
35export template <class T>
37
38export template <class T>
40{
42};
43
44template <class T>
48}
49
50
51struct MyClass {
52 int i_;
53 MyClass (): i_ (0) { }
54};
55
56
57int main ()
58{
59 MyClass x;
60
62}
#define T
Definition 17.names.cpp:163
#define t
Definition 17.names.cpp:136
#define x
Definition 17.names.cpp:140
T exported_function_template(T)
int main()
Definition EXPORT.cpp:57
T exported_class_member(T)
Definition EXPORT.cpp:46
MyClass()
Definition EXPORT.cpp:53
int i_
Definition EXPORT.cpp:52