Boost logo

Boost Users :

From: Roman Perepelitsa (romka_at_[hidden])
Date: 2006-08-10 06:51:52


Manfred Doudar <manfred.doudar <at> rsise.anu.edu.au> writes:

> template <typename Predicate>
> class Excise
> {
> public:
>
> void operator()(std::list<Xtype>& li) const
> {
> li.remove_if(boost::bind(Predicate(), ::_1, 10));
> }
> };

Hello.

Try this:
bind(Predicate(), bind(&Xtype::the_value, _1), 10)

HTH,
Roman Perepelitsa


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