
21 Jan
2005
21 Jan
'05
6:49 a.m.
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);