Remove uses of BOOST_SP_NOEXCEPT from make_local_shared_object.hpp

This commit is contained in:
Peter Dimov
2024-10-02 21:33:23 +03:00
parent 8a03c71a28
commit 9a1d7008eb

View File

@@ -53,7 +53,7 @@ private:
private:
void destroy() BOOST_SP_NOEXCEPT
void destroy() noexcept
{
if( initialized_ )
{
@@ -67,35 +67,35 @@ private:
public:
explicit lsp_ms_deleter( A const & a ) BOOST_SP_NOEXCEPT : a_( a ), initialized_( false )
explicit lsp_ms_deleter( A const & a ) noexcept : a_( a ), initialized_( false )
{
}
// optimization: do not copy storage_
lsp_ms_deleter( lsp_ms_deleter const & r ) BOOST_SP_NOEXCEPT : a_( r.a_), initialized_( false )
lsp_ms_deleter( lsp_ms_deleter const & r ) noexcept : a_( r.a_), initialized_( false )
{
}
~lsp_ms_deleter() BOOST_SP_NOEXCEPT
~lsp_ms_deleter() noexcept
{
destroy();
}
void operator()( T * ) BOOST_SP_NOEXCEPT
void operator()( T * ) noexcept
{
destroy();
}
static void operator_fn( T* ) BOOST_SP_NOEXCEPT // operator() can't be static
static void operator_fn( T* ) noexcept // operator() can't be static
{
}
void * address() BOOST_SP_NOEXCEPT
void * address() noexcept
{
return storage_.data_;
}
void set_initialized() BOOST_SP_NOEXCEPT
void set_initialized() noexcept
{
initialized_ = true;
}