Skip to content

Commit 9839456

Browse files
burblebeetkoeppe
authored andcommitted
LWG3795 Self-move-assignment of std::future and std::shared_future have unimplementable postconditions
1 parent 26f99d4 commit 9839456

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/threads.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10576,6 +10576,8 @@
1057610576
\begin{itemdescr}
1057710577
\pnum
1057810578
\effects
10579+
If \tcode{addressof(rhs) == this} is \tcode{true}, there are no effects.
10580+
Otherwise:
1057910581
\begin{itemize}
1058010582
\item
1058110583
Releases any shared state\iref{futures.state}.
@@ -10591,6 +10593,7 @@
1059110593
assignment.
1059210594

1059310595
\item
10596+
If \tcode{addressof(rhs) == this} is \tcode{false},
1059410597
\tcode{rhs.valid() == false}.
1059510598
\end{itemize}
1059610599
\end{itemdescr}
@@ -10897,6 +10900,8 @@
1089710900
\begin{itemdescr}
1089810901
\pnum
1089910902
\effects
10903+
If \tcode{addressof(rhs) == this} is \tcode{true}, there are no effects.
10904+
Otherwise:
1090010905
\begin{itemize}
1090110906
\item
1090210907
Releases any shared state\iref{futures.state};
@@ -10912,6 +10917,7 @@
1091210917
the assignment.
1091310918

1091410919
\item
10920+
If \tcode{addressof(rhs) == this} is \tcode{false},
1091510921
\tcode{rhs.valid() == false}.
1091610922
\end{itemize}
1091710923
\end{itemdescr}
@@ -10924,6 +10930,8 @@
1092410930
\begin{itemdescr}
1092510931
\pnum
1092610932
\effects
10933+
If \tcode{addressof(rhs) == this} is \tcode{true}, there are no effects.
10934+
Otherwise:
1092710935
\begin{itemize}
1092810936
\item
1092910937
Releases any shared state\iref{futures.state};

0 commit comments

Comments
 (0)