
On Thu, Mar 17, 2011 at 10:44 AM, Christoph Heindl <christoph.heindl@gmail.com> 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