auto_ptr& constructor now has no effects when exception is thrown

[SVN r12643]
This commit is contained in:
Peter Dimov
2002-02-02 16:18:04 +00:00
parent 8b5b780c2c
commit b224270cc0

View File

@@ -117,7 +117,7 @@ public:
#ifndef BOOST_NO_AUTO_PTR
template<typename Y>
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn(r.release(), checked_deleter<Y>())
explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn(r)
{
}