8 Aug
2005
8 Aug
'05
10:57 p.m.
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.