From 78057574cf74185ee3382c4e56e8f595d8aa5dc8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 2 Oct 2024 21:25:07 +0300 Subject: [PATCH] Remove uses of BOOST_SP_NOEXCEPT from enable_shared_from.hpp --- include/boost/smart_ptr/enable_shared_from.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); }