$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?