|
Boost Users : |
From: Sean Kelly (sean.kelly_at_[hidden])
Date: 2005-06-10 10:26:52
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
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