diff --git a/include/boost/smart_ptr/make_local_shared_object.hpp b/include/boost/smart_ptr/make_local_shared_object.hpp index aca931f5b0..55185487bb 100644 --- a/include/boost/smart_ptr/make_local_shared_object.hpp +++ b/include/boost/smart_ptr/make_local_shared_object.hpp @@ -53,7 +53,7 @@ template class lsp_ms_deleter: public local_counted_impl_em private: - void destroy() BOOST_SP_NOEXCEPT + void destroy() noexcept { if( initialized_ ) { @@ -67,35 +67,35 @@ template 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; }