Subject: Re: [boost] compiling boost using C++11 atomics
From: André Draszik (git_at_[hidden])
Date: 2016-08-29 03:29:18
On Fr, 2016-08-26 at 21:45 +0300, Peter Dimov wrote:
> AndrÃ© Draszik wrote:
> > Hi,
> > Is there any particular reason that boost isn't being compiled withÂ
> > BOOST_AC_USE_STD_ATOMIC and BOOST_SP_USE_STD_ATOMIC (by default) whenÂ
> > C++11 support in g++ is available (g++ >= 4.7)?
> Support for <atomic> in earlier C++11 implementations wasn't reliable
> compared to shared_ptr's platform-specific implementations.
> Things nowadays have probably already reversed though, with <atomic>
> more reliable.
> I could turn it on by default when BOOST_NO_CXX11_HDR_ATOMICÂ
> isn't defined,
Something like the attached?
> which according to Boost.Config would enable it on g++ 4.9Â
> and above.Â
This would enable it on g++ >= 4.8 (not >= 4.9), though.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk