OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cp:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp13.C
1
template<class T> class D
2
{
3
public:
4
int f();
5
};
6
7
template<class T> int D<T>::f()
8
{
9
return sizeof(T);
10
}
11
12
template<template<class> class D,class E> class C
13
{
14
D<E> d;
15
public:
16
int f();
17
};
18
19
template<template<class> class D,class E> int C<D,E>::f()
20
{
21
return d.f();
22
}
23
24
int main()
25
{
26
C<D,int> c;
27
c.f();
28
}