Re: [PATCH] Define std::atomic_ref and std::atomic for C++20

2019-07-12 Thread Jonathan Wakely
On 11/07/19 20:45 +0100, Jonathan Wakely wrote: + // Repeat for volatile std::atomic + if constexpr (std::atomic::is_always_lock_free) Thanks to Uros for pointing out this typo. Fixed by the attached patch, committed to trunk. commit 991bdaf97870e2775a15314823759aec7fd79599 Author: redi Da

Re: [PATCH] Define std::atomic_ref and std::atomic for C++20

2019-07-12 Thread Jonathan Wakely
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 namespac

Re: [PATCH] Define std::atomic_ref and std::atomic for C++20

2019-07-12 Thread Jonathan Wakely
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

Re: [PATCH] Define std::atomic_ref and std::atomic for C++20

2019-07-12 Thread Jonathan Wakely
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

Re: [PATCH] Define std::atomic_ref and std::atomic for C++20

2019-07-12 Thread Jonathan Wakely
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

[PATCH] Define std::atomic_ref and std::atomic for C++20

2019-07-11 Thread Jonathan Wakely
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 us