Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-06 07:23:55

From: "Steve Anichini" <sanichin_at_[hidden]>
> This syntax doesn't compile for me under VC++ 6 - it doesn't like the
> specification of the function pointer type in the template args list,
> produces "error C2653: 'T' : is not a class or namespace name".

Odd. Works for me under both VC 6 (12.00.8804) and VC 7.

Peter Dimov
Multi Media Ltd.
template<class R, class T, class F = R (T::*) ()> class mf0
 typedef R result_type;
 typedef T * first_argument_type;
 F f_;
 // omitted
class X
int main()
 mf0<void, X>();
 return 0;

Boost list run by bdawes at, gregod at, cpdaniel at, john at