Boost logo

Boost Users :

Subject: Re: [Boost-users] [lambda] Boost.Bind works, labmda bind fails to compile
From: Igor R (boost.lists_at_[hidden])
Date: 2009-12-30 09:48:37


>       boost::phoenix::bind(&Functor::func<Functor>, &f, f); // Does this compile?

No it doesn't, with errors very similar to those of lambda:
error C2780: 'boost::phoenix::actor<as_composite<boost::phoenix::detail::function_eval<9>,boost::phoenix::detail::function_ptr<9,RT,RT(__cdecl
*)(T0,T1,T2,T3,T4,T5,T6,T7,T8)>,A0,A1,A2,A3,A4,A5,A6,A7,A8>::type>
boost::phoenix::bind(RT (__cdecl *)(T0,T1,T2,T3,T4,T5,T6,T7,T8),const
A0 &,const A1 &,const A2 &,const A3 &,const A4 &,const A5 &,const A6
&,const A7 &,const A8 &)' : expects 10 arguments - 3 provided
etc...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net