|
Boost : |
Subject: Re: [boost] [shared_ptr] delete shared_ptr
From: Christoph Heindl (christoph.heindl_at_[hidden])
Date: 2011-03-17 05:48:28
On Thu, Mar 17, 2011 at 10:44 AM, Christoph Heindl
<christoph.heindl_at_[hidden]> wrote:
>
> // Construct from pre-existing accelerator.
> // Accelerator is guaranteed to live as long as this class instance does.
> works_with_points (boost::shared_ptr<accelarator_over_points const> accel)
> : _acc(accel) {}
>
> // Construct from pre-existing accelerator.
> works_with_points (const accelarator_over_points &accel)
> : _acc(&accel, null_deleter()) {}
Typo in documentation and code. Should read
// Construct from pre-existing accelerator.
works_with_points (boost::shared_ptr<accelerator_over_points const> accel)
: _acc(accel) {}
// Construct from pre-existing accelerator.
// Accelerator is guaranteed to live as long as this class instance does.
works_with_points (const accelerator_over_points &accel)
: _acc(&accel, null_deleter()) {}
You get the point :)
Best regards,
Christoph
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk