|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-12 16:00:50
From: "someuserat" <marktutt_at_[hidden]>
[...]
> However, when I try to use the boost::shared_ptr library like so...
>
> typedef boost::shared_ptr<Widget> WidgetPtr;
>
> vector<WidgetPtr> col;
>
> This statement causes gcc to bark with all manner of errors...
>
> vector<WidgetPtr>::const_iterator i =
> find_if(col.begin(),col.end(),mem_fun(&Widget::IsPrimary));
Change std::mem_fun (it doesn't recognize smart pointers) to boost::mem_fn.
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