Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
STATICS_IN_TEMPLATE.cpp
Go to the documentation of this file.
1// checking for references to static symbols in template
2
3
25static int static_function (int i) { return i; }
26static int static_function (double d) { return int (d); }
27
28template <class T>
29int foo (T t)
30{
31 // check whether static functions can be called from
32 // a function template ( EDG eccp in strict mode or
33 // SunPro do not allow it -- see PR #25961)
34 return static_function (t);
35}
36
37int main ()
38{
39 foo (0);
40 foo (0.0);
41}
#define i
Definition 17.names.cpp:126
#define T
Definition 17.names.cpp:163
#define t
Definition 17.names.cpp:136
#define d
Definition 17.names.cpp:115
int main()
#define foo(buf, s,...)