Skip to content

Commit b61d476

Browse files
burblebeetkoeppe
authored andcommitted
LWG4450 std::atomic_ref<T>::store_key should be disabled for const T
Fixes NB US 193-311 (C++26 CD).
1 parent 373ad37 commit b61d476

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
@@ -3774,6 +3774,10 @@
37743774
\end{itemdecl}
37753775

37763776
\begin{itemdescr}
3777+
\pnum
3778+
\constraints
3779+
\tcode{is_const_v<\placeholder{integral-type}>} is \tcode{false}.
3780+
37773781
\pnum
37783782
\expects
37793783
\tcode{order} is \tcode{memory_order::relaxed},
@@ -4028,6 +4032,10 @@
40284032
\end{itemdecl}
40294033

40304034
\begin{itemdescr}
4035+
\pnum
4036+
\constraints
4037+
\tcode{is_const_v<\placeholder{floating-point-type}>} is \tcode{false}.
4038+
40314039
\pnum
40324040
\expects
40334041
\tcode{order} is \tcode{memory_order::relaxed},
@@ -4263,6 +4271,10 @@
42634271
\end{itemdecl}
42644272

42654273
\begin{itemdescr}
4274+
\pnum
4275+
\constraints
4276+
\tcode{is_const_v<\placeholder{pointer-type}>} is \tcode{false}.
4277+
42664278
\pnum
42674279
\mandates
42684280
\tcode{remove_pointer_t<\placeholder{pointer-type}>} is a complete object type.

0 commit comments

Comments
 (0)