From 32fe0b8f26fa124d8a211fe230943360d74d9041 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 5 Dec 2012 03:44:40 +0000 Subject: [PATCH] Merged revision(s) 81488 from trunk: Apply patch from #7722. Fixes #7722. [SVN r81714] --- include/boost/smart_ptr/detail/shared_count.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/smart_ptr/detail/shared_count.hpp b/include/boost/smart_ptr/detail/shared_count.hpp index be4f65b..5d22f86 100644 --- a/include/boost/smart_ptr/detail/shared_count.hpp +++ b/include/boost/smart_ptr/detail/shared_count.hpp @@ -35,7 +35,10 @@ // rather than including directly: #include // std::auto_ptr #include // std::less -#include // std::bad_alloc + +#ifdef BOOST_NO_EXCEPTIONS +# include // std::bad_alloc +#endif #if !defined( BOOST_NO_CXX11_SMART_PTR ) # include