Boost logo

Boost Users :

From: Trigve Siver (trigves_at_[hidden])
Date: 2008-06-19 14:21:56


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
      

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