]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/enable_shared_from_this.hpp
* lib/doc/Makefile.am:
[lyx.git] / boost / boost / enable_shared_from_this.hpp
index d3f8ab80b828e404f89efa273665efa6199fb0d3..4e49f1f73ba5850f9d1098ad348d1e547c7f721f 100644 (file)
@@ -6,10 +6,9 @@
 //
 //  Copyright (c) 2002 Peter Dimov
 //
-//  Permission to copy, use, modify, sell and distribute this software
-//  is granted provided this copyright notice appears in all copies.
-//  This software is provided "as is" without express or implied
-//  warranty, and with no claim as to its suitability for any purpose.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
 //
 //  http://www.boost.org/libs/smart_ptr/enable_shared_from_this.html
 //
@@ -59,8 +58,14 @@ 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
-    weak_ptr<_internal_element_type> _internal_weak_this;
+    mutable weak_ptr<_internal_element_type> _internal_weak_this;
 };
 
 } // namespace boost