Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2008-03-24 11:07:01


Author: fmhess
Date: 2008-03-24 11:07:00 EDT (Mon, 24 Mar 2008)
New Revision: 43823
URL: http://svn.boost.org/trac/boost/changeset/43823

Log:
Fixed compile error with new enable_shared_from_this code,
reported by Tim Blechmann

Text files modified:
   trunk/boost/enable_shared_from_this.hpp | 2 +-
   1 files changed, 1 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-24 11:07:00 EDT (Mon, 24 Mar 2008)
@@ -95,7 +95,7 @@
     {
         init_internal_shared_once();
         get_deleter<detail::sp_deleter_wrapper>(_internal_shared_this)->set_deleter(owner);
- owner = _internal_shared_this;
+ owner = dynamic_pointer_cast<U>(_internal_shared_this);
         _internal_shared_this.reset();
         _owned = true;
     }


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