From 7484a58a2099635eadda2acc8827e711462a4969 Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Mon, 3 Nov 2025 17:27:04 -1000 Subject: [PATCH] P3860R1: Let the converting constructor be noexcept --- atomic.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/atomic.md b/atomic.md index 090dc80..ab4df7e 100644 --- a/atomic.md +++ b/atomic.md @@ -1,7 +1,7 @@ --- title: "Proposed Resolution for NB Comment GB13-309 `atomic_ref` is not convertible to `atomic_ref`" -document: P3860R0 -date: 2025-10-04 +document: P3860R1 +date: 2025-11-03 audience: LEWG, LWG author: - name: Hui Xie @@ -11,6 +11,13 @@ author: toc: true --- +# Revision History +## R1 +- Added `noexcept` specifier. + +## R0 +- Initial revision + # Abstract @@ -28,7 +35,7 @@ Change [atomics.ref.generic.general]{.sref} as follows: constexpr explicit atomic_ref(T&); constexpr atomic_ref(const atomic_ref&) noexcept; @[`template `]{.add}@ - @[`constexpr atomic_ref(const atomic_ref&);`]{.add}@ + @[`constexpr atomic_ref(const atomic_ref&) noexcept;`]{.add}@ ``` Add a new entry to [atomics.ref.ops]{.sref} after paragraph 8: @@ -37,7 +44,7 @@ Add a new entry to [atomics.ref.ops]{.sref} after paragraph 8: ```cpp template -constexpr atomic_ref(const atomic_ref& ref); +constexpr atomic_ref(const atomic_ref& ref) noexcept; ``` [9]{.pnum} *Contraints*: