From 0127c06692cc4e6f86ec841a891ec1f8c19b3534 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 5 Nov 2005 14:40:29 +0000 Subject: [PATCH] Added a note that it's not necessary to initialize _internal_weak_this. [SVN r31566] --- include/boost/enable_shared_from_this.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/enable_shared_from_this.hpp b/include/boost/enable_shared_from_this.hpp index 0cf7854..4e49f1f 100644 --- a/include/boost/enable_shared_from_this.hpp +++ b/include/boost/enable_shared_from_this.hpp @@ -58,6 +58,12 @@ public: return p; } +// Note: No, you don't need to initialize _internal_weak_this +// +// Please read the documentation, not the code +// +// http://www.boost.org/libs/smart_ptr/enable_shared_from_this.html + typedef T _internal_element_type; // for bcc 5.5.1 mutable weak_ptr<_internal_element_type> _internal_weak_this; };