|
Boost Users : |
From: Richard Crossley (rdc_at_[hidden])
Date: 2005-08-08 17:57:56
>Here I go again.
>This time the code is:
[snip]
if_then takes two parameters.
> std::for_each(alist.begin(),alist.end(),
>
>boost::lambda::if_then((bind(strListFind,&excluded,bind(&A::get,_1)))
> !=excluded.end())
>
>bind(strListInsert,&excluded,bind(&A::get,_1)));
I'd guess you meant:
std::for_each(alist.begin(),alist.end(),
boost::lambda::if_then(
bind(strListFind,&excluded,bind(&A::get,_1))!=excluded.end(),
bind(strListInsert,&excluded,bind(&A::get,_1))
)
);
Richard.
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