mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-29 20:37:13 +02:00
Remove uses of BOOST_SP_NOEXCEPT from local_counted_base.hpp
This commit is contained in:
@ -42,23 +42,23 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
BOOST_CONSTEXPR local_counted_base() BOOST_SP_NOEXCEPT: local_use_count_( initial_ )
|
||||
BOOST_CONSTEXPR local_counted_base() noexcept: local_use_count_( initial_ )
|
||||
{
|
||||
}
|
||||
|
||||
BOOST_CONSTEXPR local_counted_base( local_counted_base const & ) BOOST_SP_NOEXCEPT: local_use_count_( initial_ )
|
||||
BOOST_CONSTEXPR local_counted_base( local_counted_base const & ) noexcept: local_use_count_( initial_ )
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~local_counted_base() /*BOOST_SP_NOEXCEPT*/
|
||||
virtual ~local_counted_base() /*noexcept*/
|
||||
{
|
||||
}
|
||||
|
||||
virtual void local_cb_destroy() BOOST_SP_NOEXCEPT = 0;
|
||||
virtual void local_cb_destroy() noexcept = 0;
|
||||
|
||||
virtual boost::detail::shared_count local_cb_get_shared_count() const BOOST_SP_NOEXCEPT = 0;
|
||||
virtual boost::detail::shared_count local_cb_get_shared_count() const noexcept = 0;
|
||||
|
||||
void add_ref() BOOST_SP_NOEXCEPT
|
||||
void add_ref() noexcept
|
||||
{
|
||||
#if !defined(__NVCC__)
|
||||
#if defined( __has_builtin )
|
||||
@ -73,7 +73,7 @@ public:
|
||||
local_use_count_ = static_cast<count_type>( local_use_count_ + 1 );
|
||||
}
|
||||
|
||||
void release() BOOST_SP_NOEXCEPT
|
||||
void release() noexcept
|
||||
{
|
||||
local_use_count_ = static_cast<count_type>( local_use_count_ - 1 );
|
||||
|
||||
@ -83,7 +83,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
long local_use_count() const BOOST_SP_NOEXCEPT
|
||||
long local_use_count() const noexcept
|
||||
{
|
||||
return local_use_count_;
|
||||
}
|
||||
@ -101,20 +101,20 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
explicit local_counted_impl( shared_count const& pn ) BOOST_SP_NOEXCEPT: pn_( pn )
|
||||
explicit local_counted_impl( shared_count const& pn ) noexcept: pn_( pn )
|
||||
{
|
||||
}
|
||||
|
||||
explicit local_counted_impl( shared_count && pn ) BOOST_SP_NOEXCEPT: pn_( std::move(pn) )
|
||||
explicit local_counted_impl( shared_count && pn ) noexcept: pn_( std::move(pn) )
|
||||
{
|
||||
}
|
||||
|
||||
void local_cb_destroy() BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
||||
void local_cb_destroy() noexcept BOOST_OVERRIDE
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
||||
boost::detail::shared_count local_cb_get_shared_count() const BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
||||
boost::detail::shared_count local_cb_get_shared_count() const noexcept BOOST_OVERRIDE
|
||||
{
|
||||
return pn_;
|
||||
}
|
||||
@ -126,12 +126,12 @@ public:
|
||||
|
||||
shared_count pn_;
|
||||
|
||||
void local_cb_destroy() BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
||||
void local_cb_destroy() noexcept BOOST_OVERRIDE
|
||||
{
|
||||
shared_count().swap( pn_ );
|
||||
}
|
||||
|
||||
boost::detail::shared_count local_cb_get_shared_count() const BOOST_SP_NOEXCEPT BOOST_OVERRIDE
|
||||
boost::detail::shared_count local_cb_get_shared_count() const noexcept BOOST_OVERRIDE
|
||||
{
|
||||
return pn_;
|
||||
}
|
||||
|
Reference in New Issue
Block a user