FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec1.C
blobab18ff81c81a01d6291f05bd661b6f3b3ab7daad
1 // Build don't link:
3 template <class S, class T>
4 class mem_fun1_t {
5 public:
6   mem_fun1_t(S (T::*pf)(double)) {} 
7 };
9 template <class T>
10 class mem_fun1_t<void, T> { 
11 public:
12   mem_fun1_t(void (T::*pf)(double)) {}
15 struct Operation {
16   double eval(double) { return 0; }
19 int main() {
20   mem_fun1_t<double, Operation> m(&Operation::eval);