Subject: Re: [boost] [smart_ptr] enable_shared_from_this and shared_ptr to a base class
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-06-24 04:37:42


On Mon, Jun 24, 2013 at 12:06 PM, Jonathan Wakely
<jwakely.boost_at_[hidden]>wrote:

>
> I think there is a small documentation bug though,
> enable_shared_from_this talks about owning an object of type T, but
> the shared_ptr docs talk about owning a pointer. The docs for
> std::enable_shared_from_this correctly say "There shall be at least
> one shared_ptr instance p that owns &t." (as opposed to "owns t").
> The & should be added to the Boost docs.
>

I think it is more correct to say "the pointer owns the [pointed to]
object" rather than "the pointer owns the pointer to the object". If the
citation you quoted is taken from the standard, then it probably should be
corrected.