Hello Mattias,
Wednesday, July 28, 2004, 6:19:21 PM, you wrote:
MB> Hello!
MB> I am new to the boost lambda library so this might be a naive question.
MB> Here goes. This is what I want to do:
MB> class Foo {
MB> public:
MB> int bar() { return 42; }
MB> };
MB> int main()
MB> {
MB> std::vector<Foo> v;
MB> v.push_back(Foo());
MB> count_if(v.begin(), v.end(), boost::bind(&Foo::bar, _1) == 42);
MB> return 0;
MB> }
You may try something like this:
#include <vector>
#include