12 Sep
2002
12 Sep
'02
9 p.m.
From: "someuserat"
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.