Skip to content

Commit 03b34fc

Browse files
committed
LWG4450 std::atomic_ref<T>::store_key should be disabled for const T
Fixes US 193-311 (C++26 CD).
1 parent 4842e80 commit 03b34fc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/threads.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3778,6 +3778,10 @@
37783778
\end{itemdecl}
37793779

37803780
\begin{itemdescr}
3781+
\pnum
3782+
\constraints
3783+
\tcode{is_const_v<\placeholder{integral-type}>} is \tcode{false}.
3784+
37813785
\pnum
37823786
\expects
37833787
\tcode{order} is \tcode{memory_order::relaxed},
@@ -4032,6 +4036,10 @@
40324036
\end{itemdecl}
40334037

40344038
\begin{itemdescr}
4039+
\pnum
4040+
\constraints
4041+
\tcode{is_const_v<\placeholder{floating-point-type}>} is \tcode{false}.
4042+
40354043
\pnum
40364044
\expects
40374045
\tcode{order} is \tcode{memory_order::relaxed},
@@ -4267,6 +4275,10 @@
42674275
\end{itemdecl}
42684276

42694277
\begin{itemdescr}
4278+
\pnum
4279+
\constraints
4280+
\tcode{is_const_v<\placeholder{pointer-type}>} is \tcode{false}.
4281+
42704282
\pnum
42714283
\mandates
42724284
\tcode{remove_pointer_t<\placeholder{pointer-type}>} is a complete object type.

0 commit comments

Comments
 (0)