10 Jun
2005
10 Jun
'05
4:57 p.m.
On 6/10/05, Sean Kelly
is there any reason to prefer (i.e is it safer) some_utility(boost::shared_ptr<Foo> ptr) to some_utility(boost::shared_ptr<Foo>& ptr) or even some_utility(Foo& ref) (shared ptr is derefed and passed in)
It depends on what some_utility needs to do with the object. See some Peter Dimov's reply to a similar question: http://article.gmane.org/gmane.comp.lib.boost.devel/113132 -- Caleb Epstein caleb dot epstein at gmail dot com