Boost logo

Boost Users :

Subject: [Boost-users] lambda::bind with A::method throw (char*)
From: Archie14 (admin_at_[hidden])
Date: 2010-05-26 10:43:56


I have a problem compiling this:

class A
{
public:
  void method();
  void methodwiththrow() throw (char*);
};

std::vector<A*> lst;

// compiles OK.
std::for_each (lst.begin(), lst.end(),
boost::lambda::bind(&A::method, boost::lambda::_1));

// compile fails.
std::for_each (lst.begin(), lst.end(),
boost::lambda::bind(&A::methodwiththrow, boost::lambda::_1));

What might be the reason?


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