From b224270cc0d70243af4455b62867c781c6d3e72f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 2 Feb 2002 16:18:04 +0000 Subject: [PATCH] auto_ptr& constructor now has no effects when exception is thrown [SVN r12643] --- include/boost/shared_ptr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index db75b9e..eb4d662 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -117,7 +117,7 @@ public: #ifndef BOOST_NO_AUTO_PTR template - explicit shared_ptr(std::auto_ptr & r): px(r.get()), pn(r.release(), checked_deleter()) + explicit shared_ptr(std::auto_ptr & r): px(r.get()), pn(r) { }