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
{
public:
 typedef R result_type;
 typedef T * first_argument_type;
private:
 F f_;
public:
 // omitted
};
class X
{
};
int main()
{
 mf0<void, X>();
 return 0;
}

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk