8 Dec
2015
8 Dec
'15
3:55 p.m.
Beman Dawes wrote:
So it looks like the clang/c2 toolset doesn't support atomics yet. The __c2__ and __c2_version__ macros allow detection of the clang/c2 toolset, could a workaround be added to shared_ptr?
If you change #if defined( __clang__ ) && defined( __has_extension ) # if __has_extension( __c_atomic__ ) # define BOOST_SP_HAS_CLANG_C11_ATOMICS # endif #endif in sp_counted_base.hpp to #if defined( __clang__ ) && defined( __has_extension ) && !defined( __c2__ ) # if __has_extension( __c_atomic__ ) # define BOOST_SP_HAS_CLANG_C11_ATOMICS # endif #endif does it work then?