repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
spec1.C
blob
ab18ff81c81a01d6291f05bd661b6f3b3ab7daad
1
// Build don't link:
2
3
template <class S, class T>
4
class mem_fun1_t {
5
public:
6
mem_fun1_t(S (T::*pf)(double)) {}
7
};
8
9
template <class T>
10
class mem_fun1_t<void, T> {
11
public:
12
mem_fun1_t(void (T::*pf)(double)) {}
13
};
14
15
struct Operation {
16
double eval(double) { return 0; }
17
};
18
19
int main() {
20
mem_fun1_t<double, Operation> m(&Operation::eval);
21
}