Remove uses of BOOST_SP_NOEXCEPT from enable_shared_from.hpp

This commit is contained in:
Peter Dimov
2024-10-02 21:25:07 +03:00
parent 03e1bb314b
commit 78057574cf

View File

@ -12,7 +12,6 @@
// See http://www.boost.org/libs/smart_ptr/ for documentation.
#include <boost/smart_ptr/enable_shared_from_this.hpp>
#include <boost/smart_ptr/detail/sp_noexcept.hpp>
namespace boost
{
@ -31,7 +30,7 @@ template<class T> shared_ptr<T> shared_from( T * p )
return shared_ptr<T>( p->enable_shared_from_this<enable_shared_from>::shared_from_this(), p );
}
template<class T> weak_ptr<T> weak_from( T * p ) BOOST_SP_NOEXCEPT
template<class T> weak_ptr<T> weak_from( T * p ) noexcept
{
return weak_ptr<T>( p->enable_shared_from_this<enable_shared_from>::weak_from_this(), p );
}