Merge pull request #40 from BenjaminW3/topic-fix-nvcc

fix compilation for nvcc+clang
This commit is contained in:
Peter Dimov
2017-08-28 10:51:22 +03:00
committed by GitHub

View File

@ -60,12 +60,14 @@ public:
void add_ref() BOOST_SP_NOEXCEPT
{
#if !defined(__NVCC__)
#if defined( __has_builtin )
# if __has_builtin( __builtin_assume )
__builtin_assume( local_use_count_ >= 1 );
# endif
#endif
#endif
local_use_count_ = static_cast<count_type>( local_use_count_ + 1 );