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
2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp20.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 : D<E>
13
{
14
public:
15
int g();
16
};
17
18
template<template<class> class D,class E> int C<D,E>::g()
19
{
20
return f();
21
}
22
23
int main()
24
{
25
C<D,int> c;
26
c.g();
27
}