enable_shared_from_this::_internal_weak_this initialization

8 Oct
2003
8 Oct
'03
3:42 p.m.
Hello, It seems that classes which inherit from enable_shared_from_this are required to explicitly initialize _internal_weak_this. 1) Is that correct? If not, how is it initialized? 2) Is this detail mentioned anywhere in the documentation? (I couldn't find it.) Thanks, Cody

13 Oct
13 Oct
2:20 p.m.
New subject: [Boost-users] enable_shared_from_this::_internal_weak_thisinitialization
Cody Batt wrote:
Hello,
It seems that classes which inherit from enable_shared_from_this are required to explicitly initialize _internal_weak_this. 1) Is that correct? If not, how is it initialized?
No, this is not correct. You aren't supposed to touch _internal_weak_this, you aren't even supposed to know that it exists. It is initialized by the implementation.
7803
Age (days ago)
7808
Last active (days ago)
1 comments
2 participants
participants (2)
-
Cody Batt
-
Peter Dimov