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