Skip to content

Commit 14eb0ae

Browse files
burblebeetkoeppe
authored andcommitted
LWG3940 std::expected<void, E>::value() also needs E to be copy constructible
1 parent 756d2ca commit 14eb0ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/utilities.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9188,6 +9188,10 @@
91889188
\end{itemdecl}
91899189

91909190
\begin{itemdescr}
9191+
\pnum
9192+
\mandates
9193+
\tcode{is_copy_constructible_v<E>} is \tcode{true}.
9194+
91919195
\pnum
91929196
\throws
91939197
\tcode{bad_expected_access(error())} if \tcode{has_value()} is \tcode{false}.
@@ -9199,6 +9203,11 @@
91999203
\end{itemdecl}
92009204

92019205
\begin{itemdescr}
9206+
\pnum
9207+
\mandates
9208+
\tcode{is_copy_constructible_v<E>} is \tcode{true} and
9209+
\tcode{is_move_constructible_v<E>} is \tcode{true}.
9210+
92029211
\pnum
92039212
\throws
92049213
\tcode{bad_expected_access(std::move(error()))}

0 commit comments

Comments
 (0)