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
The following example fails to compile with MS Visual Studio 2005 SP1 Is there any solution?
With no regards to this lambda-specific issue, it's worth reading the following article: http://www.gotw.ca/publications/mill22.htm
participants (2)
-
Igor R
-
Trigve Siver