Boost logo

Boost Users :

From: Kosta (boost_at_[hidden])
Date: 2005-01-21 01:49:39


Don't know, if this is a FAQ, but I couldn't find an answer to this

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);

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at