Boost logo

Boost :

From: Sebastian Faust (sfaust_at_[hidden])
Date: 2003-11-04 12:01:52


 Hi,

> When you're using a broken compiler you need to resort to slightly
> uglier code. Try this definition of make_vehicle:
I am using MS VC++ Net.2002. Maybe this helps you. Will this error occur in
the 2003 version too?

>
> struct make_vehicle
> {
> template< typename Base, typename T >
> struct apply
> {
> static vehicle* make( vehicle* ptr )
> {
> return new T( Base::make( ptr ) );
> }
> };
> };
>
> Now use make_vehicle instead of make_vehicle<_2,_1>

I tried that, but again I get a compile-error:
error: C2039: 'type': is not a member of boost::mpl::apply2<F, T1, T2>.

What have I done wrong? Sorry for these silly questions. Btw. can you maybe
explain me why this error occurs?

Thanks in advance
Sebastian


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