Boost logo

Boost Users :

Subject: Re: [Boost-users] using bind with find_if
From: Igor R (boost.lists_at_[hidden])
Date: 2011-03-09 18:36:40


> 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.


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