Index: boost/smart_ptr/detail/shared_count.hpp =================================================================== --- boost/smart_ptr/detail/shared_count.hpp (revision 81480) +++ boost/smart_ptr/detail/shared_count.hpp (working copy) @@ -35,7 +35,9 @@ // 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