[PATCH] Define std::atomic_ref and std::atomic<floating-point> for C++20

Jonathan Wakely jwakely@redhat.com
Fri Jul 12 11:24:00 GMT 2019


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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 71696 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190712/2f3e7fd0/attachment.bin>


More information about the Gcc-patches mailing list