Boost logo

Boost :

Subject: Re: [boost] [thread] Can Boost.Thread use Boost.Atomicwithoutfalling on a compatibility issue?
From: Peter Dimov (lists_at_[hidden])
Date: 2013-01-14 15:11:05


Howard Hinnant wrote:
> I just ran this test in C++03 mode:
>
> #include <iostream>
>
> int main()
> {
> std::cout << __c11_atomic_is_lock_free(1) << '\n';
> std::cout << __has_feature(c_atomic) << '\n';
> }
>
> It outputs:
>
> 1
> 0

What does __has_extension(c_atomic) say?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk