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