
9 Mar
2011
9 Mar
'11
11:36 p.m.
I just have to add:
typedef bool result_type;
to my functor, or call boost::bind<bool>.
Or just define a simple function instead of the functor (which is stateless anyway). By the way, if you've got a lot of tasks where you extract elements according to some criteria, it's worth taking a look at Boost.MultiIndex - it's quite powerful tool for both trivial and complicated cases.