Boost logo

Boost :

Subject: Re: [boost] [shared_ptr] delete shared_ptr
From: Joshua Juran (jjuran_at_[hidden])
Date: 2011-03-17 05:56:10


On Mar 17, 2011, at 2:48 AM, Christoph Heindl wrote:

> // Construct from pre-existing accelerator.
> works_with_points (boost::shared_ptr<accelerator_over_points const>
> accel)
> : _acc(accel) {}

Is there a reason to pass the shared_ptr by value instead of const
reference?

Josh


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk