Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81488 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2012-11-22 12:39:27


Author: pdimov
Date: 2012-11-22 12:39:27 EST (Thu, 22 Nov 2012)
New Revision: 81488
URL: http://svn.boost.org/trac/boost/changeset/81488

Log:
Apply patch from #7722. Refs #7722.
Text files modified:
   trunk/boost/smart_ptr/detail/shared_count.hpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/boost/smart_ptr/detail/shared_count.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/shared_count.hpp (original)
+++ trunk/boost/smart_ptr/detail/shared_count.hpp 2012-11-22 12:39:27 EST (Thu, 22 Nov 2012)
@@ -35,7 +35,10 @@
 // rather than including <memory> directly:
 #include <boost/config/no_tr1/memory.hpp> // std::auto_ptr
 #include <functional> // std::less
-#include <new> // std::bad_alloc
+
+#ifdef BOOST_NO_EXCEPTIONS
+# include <new> // std::bad_alloc
+#endif
 
 #if !defined( BOOST_NO_CXX11_SMART_PTR )
 # include <boost/utility/addressof.hpp>


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