Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
STATICS_IN_TEMPLATE.cpp
Go to the documentation of this file.
1
// checking for references to static symbols in template
2
3
25
static
int
static_function (
int
i
) {
return
i
; }
26
static
int
static_function (
double
d
) {
return
int (
d
); }
27
28
template
<
class
T>
29
int
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
37
int
main
()
38
{
39
foo
(0);
40
foo
(0.0);
41
}
i
#define i
Definition
17.names.cpp:126
T
#define T
Definition
17.names.cpp:163
t
#define t
Definition
17.names.cpp:136
d
#define d
Definition
17.names.cpp:115
main
int main()
Definition
STATICS_IN_TEMPLATE.cpp:37
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
Generated by
1.9.8