diff --git a/include/boost/smart_ptr/enable_shared_from.hpp b/include/boost/smart_ptr/enable_shared_from.hpp index be88b30..66212d7 100644 --- a/include/boost/smart_ptr/enable_shared_from.hpp +++ b/include/boost/smart_ptr/enable_shared_from.hpp @@ -12,7 +12,6 @@ // See http://www.boost.org/libs/smart_ptr/ for documentation. #include -#include namespace boost { @@ -31,7 +30,7 @@ template shared_ptr shared_from( T * p ) return shared_ptr( p->enable_shared_from_this::shared_from_this(), p ); } -template weak_ptr weak_from( T * p ) BOOST_SP_NOEXCEPT +template weak_ptr weak_from( T * p ) noexcept { return weak_ptr( p->enable_shared_from_this::weak_from_this(), p ); }