|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-11-04 14:41:03
Daniel Wallin <dalwan01_at_[hidden]> writes:
> Sebastian Faust wrote:
>> 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?
>
> I think that's suppose to be:
>
> struct make_vehicle
> {
> template< typename Base, typename T >
> struct apply
> {
> struct type
> {
> static vehicle* make( vehicle* ptr )
> {
> return new T( Base::make( ptr ) );
> }
> };
> };
> };
>
> Or:
>
> template< typename Base, typename T >
> struct make_vehicle
> {
> static vehicle* make( vehicle* ptr )
> {
> return new T( Base::make( ptr ) );
> }
>
> BOOST_MPL_AUX_LAMBDA_SUPPORT(2, vehicle, (Base, T))
> };
Right. Thanks, Daniel!
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk