|
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.
Thanks,
Gianluca
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