Boost logo

Boost Users :

From: Gianluca Silvestri (gianluca.silvestri_at_[hidden])
Date: 2003-10-31 02:54:17

Hi all,
What I want to achieve is a code similar to this:

struct Foo { int fDataMember;}

int main()
    std::vector<Foo> foos;
    Foo fo;
    std::find_if(foos.begin(), foos.end(), _1->fDataMember ==
fo.fDataMember); //<-- won't compile; }

I know I could use a functor object but this is just an example for a
more general need.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at