[PATCH] Define std::atomic_ref and std::atomic<floating-point> for C++20
Jonathan Wakely
jwakely@redhat.com
Fri Jul 12 11:49:00 GMT 2019
On 12/07/19 12:20 +0100, Jonathan Wakely wrote:
>On 11/07/19 20:45 +0100, Jonathan Wakely wrote:
>>This adds the new atomic types from C++2a, as proposed by P0019 and
>>P0020. To reduce duplication the calls to the compiler's atomic
>>built-ins are wrapped in new functions in the __atomic_impl namespace.
>>These functions are currently only used by std::atomic<floating-point>
>>and std::atomic_ref but could also be used for all other specializations
>>of std::atomic.
>
>Here's a patch to reuse the new __atomic_impl functions in the
>existing atomic<integral> and atomic<pointer> specializations (and
>apply some general tidying up).
>
>I don't plan to commit this yet, but I might do so at some point.
And here's a patch for https://wg21.link/lwg3220 which I won't apply
until that open issue is resolved.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 6158 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190712/9b66ac27/attachment.bin>
More information about the Libstdc++
mailing list