Boost logo

Boost Users :

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


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