
10 Jun
2005
10 Jun
'05
3:26 p.m.
Dear All, is there any reason to prefer (i.e is it safer) to prefer 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) The latter avoiding obviously avoids the increment/decrement of the ref_count. thanks Sean