Skip to content

Commit

Permalink
Remove uses of BOOST_SP_NOEXCEPT from make_local_shared_object.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 2, 2024
1 parent bc36ab2 commit 2de54d4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/boost/smart_ptr/make_local_shared_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ template<class T, class A> class lsp_ms_deleter: public local_counted_impl_em

private:

void destroy() BOOST_SP_NOEXCEPT
void destroy() noexcept
{
if( initialized_ )
{
Expand All @@ -67,35 +67,35 @@ template<class T, class A> class lsp_ms_deleter: public local_counted_impl_em

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;
}
Expand Down

0 comments on commit 2de54d4

Please sign in to comment.