$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [thread] Can Boost.Thread use Boost.Atomicwithoutfalling on a compatibility issue?
From: Howard Hinnant (howard.hinnant_at_[hidden])
Date: 2013-01-14 15:14:51
On Jan 14, 2013, at 3:11 PM, "Peter Dimov" <lists_at_[hidden]> wrote:
> 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?
1
0
1
Not a bad idea. :-)
Howard