Boost logo

Boost Users :

Subject: Re: [Boost-users] Why is _internal_weak_this public in enable_shared_from_this?
From: Boris Schaeling (boris_at_[hidden])
Date: 2009-05-07 19:23:39


On Thu, 07 May 2009 23:46:34 +0200, Joseph Garvin
<joseph.h.garvin_at_[hidden]> wrote:

> I can see why you might want to make it protected and have it friend
> the shared_ptr template (because it does the initialization of
> _internal_weak_this I think), but I don't see any obvious reason for
> it to be public. Can anyone explain? You can see the relevant code
> here:
>
> http://www.boost.org/doc/libs/1_38_0/boost/enable_shared_from_this.hpp

It's private in Boost 1.39.0 (see
http://www.boost.org/doc/libs/1_39_0/boost/smart_ptr/enable_shared_from_this.hpp).

Boris


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