Skip to content

Commit ff069f4

Browse files
committed
[socket.streambuf.cons] Add constructor postconditions for error()
Fixes NB GB-18 (PDTS)
1 parent abd3947 commit ff069f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/socketstreams.tex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
\effects Initializes \tcode{socket_} with \tcode{ctx}, where \tcode{ctx} is an unspecified object of class \tcode{io_context}.
9292

9393
\pnum
94-
\postconditions \tcode{expiry() == time_point::max()}.
94+
\postconditions \tcode{expiry() == time_point::max()} and \tcode{!error()}.
9595
\end{itemdescr}
9696

9797
\begin{itemdecl}
@@ -103,7 +103,7 @@
103103
\effects Initializes \tcode{socket_} with \tcode{std::move(s)}.
104104

105105
\pnum
106-
\postconditions \tcode{expiry() == time_point::max()}.
106+
\postconditions \tcode{expiry() == time_point::max()} and \tcode{!error()}.
107107
\end{itemdescr}
108108

109109
\begin{itemdecl}
@@ -122,6 +122,10 @@
122122
\item
123123
\tcode{rhs_a.is_open() == false}
124124
\item
125+
\tcode{error() == rhs_p.error()}
126+
\item
127+
\tcode{!rhs_a.error()}
128+
\item
125129
\tcode{expiry() == rhs_p.expiry()}
126130
\item
127131
\tcode{rhs_a.expiry() == time_point::max()}

0 commit comments

Comments
 (0)