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
DEPENDENT_TEMPLATE.cpp
Go to the documentation of this file.
1
// checking for dependent template
2
3
25
#include "config.h"
26
27
28
template
<
class
T>
29
struct
A
30
{
31
template
<
class
U>
32
struct
B
{
33
typedef
A<U>
X
;
34
};
35
};
36
37
template
<
class
T,
class
U>
38
void
foo
(
T
,
U
)
39
{
40
// checking whether the template keyword is allowed
41
// where required by 14.2, p4
42
typedef
typename
A<T>::template
B<U>::X
ABX;
43
}
44
45
void
bar
()
46
{
47
foo
(0,
'\0'
);
48
}
T
#define T
Definition
17.names.cpp:163
U
#define U
Definition
17.names.cpp:164
bar
void bar()
Definition
DEPENDENT_TEMPLATE.cpp:45
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
A
Definition
NAMESPACE.cpp:25
B
Definition
NAMESPACE.cpp:31
A::B::X
A< U > X
Definition
DEPENDENT_TEMPLATE.cpp:33
A
Definition
DEFAULT_TEMPLATE_ARGS.cpp:26
B
Definition
DEFAULT_TEMPLATE_ARGS.cpp:29
Generated by
1.9.8