repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
ptrmem3.C
blob
fda7bf10a4d6f247b3989c10e8d7db4be4b50233
1
// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2
3
template <typename T,double (T::*fun)() const>
4
struct I {
5
};
6
7
struct R {
8
R() { }
9
};
10
11
class H: public R {
12
public:
13
H(): R() { }
14
double& f() { return a; }
15
double f() const { return 1.0; }
16
double a;
17
};
18
19
struct A {
20
typedef I<H,&H::f> F;
21
A() { }
22
};