$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Kosta (boost_at_[hidden])
Date: 2005-01-21 01:49:39
Hi!
Don't know, if this is a FAQ, but I couldn't find an answer to this
question:
Is there a common sense about how a shared_ptr<> should be passed to
functions/methods: by-value or by-(const-)reference?
1) void test(boost::shared_ptr<A> a);
2) void test(boost::shared_ptr<A>& const a);