forked from boostorg/smart_ptr
Merge branch 'develop'
This commit is contained in:
@ -60,12 +60,14 @@ public:
|
|||||||
|
|
||||||
void add_ref() BOOST_SP_NOEXCEPT
|
void add_ref() BOOST_SP_NOEXCEPT
|
||||||
{
|
{
|
||||||
|
#if !defined(__NVCC__)
|
||||||
#if defined( __has_builtin )
|
#if defined( __has_builtin )
|
||||||
# if __has_builtin( __builtin_assume )
|
# if __has_builtin( __builtin_assume )
|
||||||
|
|
||||||
__builtin_assume( local_use_count_ >= 1 );
|
__builtin_assume( local_use_count_ >= 1 );
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
local_use_count_ = static_cast<count_type>( local_use_count_ + 1 );
|
local_use_count_ = static_cast<count_type>( local_use_count_ + 1 );
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# undef HAVE_CONSTEXPR_INIT
|
# undef HAVE_CONSTEXPR_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND( BOOST_MSVC, <= 1910 )
|
#if BOOST_WORKAROUND( BOOST_MSVC, < 1920 )
|
||||||
# undef HAVE_CONSTEXPR_INIT
|
# undef HAVE_CONSTEXPR_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# undef HAVE_CONSTEXPR_INIT
|
# undef HAVE_CONSTEXPR_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND( BOOST_MSVC, <= 1910 )
|
#if BOOST_WORKAROUND( BOOST_MSVC, < 1920 )
|
||||||
# undef HAVE_CONSTEXPR_INIT
|
# undef HAVE_CONSTEXPR_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# undef HAVE_CONSTEXPR_INIT
|
# undef HAVE_CONSTEXPR_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND( BOOST_MSVC, <= 1910 )
|
#if BOOST_WORKAROUND( BOOST_MSVC, < 1920 )
|
||||||
# undef HAVE_CONSTEXPR_INIT
|
# undef HAVE_CONSTEXPR_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user