Fixed compile error with new enable_shared_from_this code,

reported by Tim Blechmann 


[SVN r43823]
This commit is contained in:
Frank Mori Hess
2008-03-24 15:07:00 +00:00
parent d7448b5746
commit d17a096407

View File

@ -95,7 +95,7 @@ public:
{
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;
}