|
Boost : |
Subject: Re: [boost] [shared_ptr] Clang with Microsoft CodeGen in VS 2015 Update1
From: Peter Dimov (lists_at_[hidden])
Date: 2015-12-08 10:55:55
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?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk