Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
DEPENDENT_TEMPLATE.cpp
Go to the documentation of this file.
1// checking for dependent template
2
3
25#include "config.h"
26
27
28template <class T>
29struct A
30{
31 template <class U>
32 struct B {
33 typedef A<U> X;
34 };
35};
36
37template <class T, class U>
38void 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
45void bar ()
46{
47 foo (0, '\0');
48}
#define T
Definition 17.names.cpp:163
#define U
Definition 17.names.cpp:164
void bar()
#define foo(buf, s,...)