$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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