Skip to content

Commit 1586e4b

Browse files
jensmaurerzygoloid
authored andcommitted
[numerics,input.output] Consistently use ios_base::failure.
Do not refer to the inherited member in a derived class.
1 parent 1769cc5 commit 1586e4b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

source/iostreams.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,9 +2209,9 @@
22092209
If \tcode{((state | (rdbuf() ? goodbit : badbit)) \& exceptions()) == 0},
22102210
returns.
22112211
Otherwise, the function throws an object of class
2212-
\tcode{basic_ios::failure}\iref{ios.failure},
2212+
\tcode{ios_base::failure}\iref{ios.failure},
22132213
constructed with
2214-
\impldef{argument values to construct \tcode{basic_ios::failure}}
2214+
\impldef{argument values to construct \tcode{ios_base::failure}}
22152215
argument values.%
22162216
\end{itemdescr}
22172217

@@ -2226,7 +2226,7 @@
22262226
Calls
22272227
\tcode{clear(rdstate() | state)}
22282228
(which may throw
2229-
\tcode{basic_ios::failure}\iref{ios.failure}).
2229+
\tcode{ios_base::failure}\iref{ios.failure}).
22302230
\end{itemdescr}
22312231

22322232
\indexlibrarymember{good}{basic_ios}%
@@ -4528,7 +4528,7 @@
45284528
If an exception is thrown during input then
45294529
\tcode{ios::badbit}
45304530
is turned on\footnote{This is done without causing an
4531-
\tcode{ios::failure}
4531+
\tcode{ios_base::failure}
45324532
to be thrown.}
45334533
in
45344534
\tcode{*this}'s
@@ -4866,7 +4866,7 @@
48664866
If an exception is thrown during input then
48674867
\tcode{ios::badbit}
48684868
is turned on\footnote{This is done without causing an
4869-
\tcode{ios::failure}
4869+
\tcode{ios_base::failure}
48704870
to be thrown.}
48714871
in
48724872
\tcode{*this}'s
@@ -6123,7 +6123,7 @@
61236123
If an exception is thrown during output, then
61246124
\tcode{ios::badbit}
61256125
is turned on\footnote{without causing an
6126-
\tcode{ios::failure}
6126+
\tcode{ios_base::failure}
61276127
to be thrown.}
61286128
in
61296129
\tcode{*this}'s
@@ -6528,7 +6528,7 @@
65286528
\tcode{ios::badbit}
65296529
% .Fs new
65306530
is turned on\footnote{without causing an
6531-
\tcode{ios::failure}
6531+
\tcode{ios_base::failure}
65326532
to be thrown.}
65336533
in
65346534
\tcode{*this}'s

source/numerics.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@
771771
If bad input is encountered, calls
772772
\tcode{is.setstate(ios_base::failbit)}
773773
(which may throw
774-
\tcode{ios::failure}\iref{iostate.flags}).
774+
\tcode{ios_base::\brk{}failure}\iref{iostate.flags}).
775775

776776
\pnum
777777
\returns
@@ -2418,7 +2418,7 @@
24182418
ensures that \tcode{v}'s state is unchanged by the operation
24192419
and
24202420
calls \tcode{is.setstate(ios::failbit)}
2421-
(which may throw \tcode{ios::failure}\iref{iostate.flags}).
2421+
(which may throw \tcode{ios_base::failure}\iref{iostate.flags}).
24222422
If a textual representation written via \tcode{os << x}
24232423
was subsequently read via \tcode{is >> v},
24242424
then \tcode{x == v}
@@ -2810,7 +2810,7 @@
28102810
ensures that \tcode{d} is unchanged by the operation
28112811
and
28122812
calls \tcode{is.setstate(ios::failbit)}
2813-
(which may throw \tcode{ios::failure}\iref{iostate.flags}).
2813+
(which may throw \tcode{ios_base::failure}\iref{iostate.flags}).
28142814

28152815
\expects
28162816
\tcode{is} provides a textual representation

0 commit comments

Comments
 (0)