19 Jun
2008
19 Jun
'08
6:21 p.m.
Hi, The following example fails to compile with MS Visual Studio 2005 SP1 Is there any solution? --- #include <boost/lambda/bind.hpp> int main() { namespace bll = boost::lambda; struct A { void a1() {} void a2() throw() {} }; A a; bll::bind(&A::a1, bll::_1)(a); // OK bll::bind(&A::a2, bll::_1)(a); // Fails } error C2664: 'boost::lambda::lambda_functor<T>::lambda_functor(const boost::lambda::lambda_functor<T> &)' : cannot convert parameter 1 from 'boost::lambda::lambda_functor_base<Act,Args>' to 'const boost::lambda::lambda_functor<T> &' thanks Trigve