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 >>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 and atomic 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.