[config] request for BOOST_NO_CXX11_HDR_ATOMIC

30 Jun
2012
30 Jun
'12
8:35 a.m.
preparing boost.lockfree for trunk, i need a good way to figure out if the <atomic> header is available. would it be possible to add a macro to detect that? BOOST_NO_CXX11_HDR_ATOMIC or the like? thanks, tim

8:59 a.m.
On Saturday 30 June 2012 10:35:39 Tim Blechmann wrote:
FYI, gcc 4.4 has <cstdatomic> instead of <atomic> with the same contents. I don't know about other compilers, maybe there are other similar cases. So we may be better have <boost/atomic.hpp> which defines the macro or includes the appropriate compiler header otherwise. Or perhaps this is the Boost.Atomic job.
4742
Age (days ago)
4742
Last active (days ago)
6 comments
3 participants
participants (3)
-
Andrey Semashev
-
John Maddock
-
Tim Blechmann