|
Boost-Commit : |
From: pdimov_at_[hidden]
Date: 2008-03-20 18:10:52
Author: pdimov
Date: 2008-03-20 18:10:52 EDT (Thu, 20 Mar 2008)
New Revision: 43739
URL: http://svn.boost.org/trac/boost/changeset/43739
Log:
Initialize _owned in the copy constructor as well.
Text files modified:
trunk/boost/enable_shared_from_this.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/enable_shared_from_this.hpp
==============================================================================
--- trunk/boost/enable_shared_from_this.hpp (original)
+++ trunk/boost/enable_shared_from_this.hpp 2008-03-20 18:10:52 EDT (Thu, 20 Mar 2008)
@@ -45,6 +45,7 @@
mutable shared_ptr<_internal_element_type> _internal_shared_this;
mutable weak_ptr<_internal_element_type> _internal_weak_this;
mutable bool _owned;
+
protected:
enable_shared_from_this():
@@ -52,7 +53,8 @@
{
}
- enable_shared_from_this(enable_shared_from_this const &)
+ enable_shared_from_this(enable_shared_from_this const &):
+ _owned(false)
{
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk