Skip to content

Commit 8166369

Browse files
jensmaurerzygoloid
authored andcommitted
[lib] Consistently use ios_base::failbit and ios_base::badbit.
1 parent 3f09e6b commit 8166369

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

source/iostreams.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4526,7 +4526,7 @@
45264526
the function endeavors
45274527
to obtain the requested input.
45284528
If an exception is thrown during input then
4529-
\tcode{ios::badbit}
4529+
\tcode{ios_base::badbit}
45304530
is turned on\footnote{This is done without causing an
45314531
\tcode{ios_base::failure}
45324532
to be thrown.}
@@ -4864,7 +4864,7 @@
48644864
\tcode{charT()})
48654865
in the first location of the array.
48664866
If an exception is thrown during input then
4867-
\tcode{ios::badbit}
4867+
\tcode{ios_base::badbit}
48684868
is turned on\footnote{This is done without causing an
48694869
\tcode{ios_base::failure}
48704870
to be thrown.}
@@ -6122,7 +6122,7 @@
61226122
\tcode{setstate(ios_base::failbit)},
61236123
which might throw an exception.
61246124
If an exception is thrown during output, then
6125-
\tcode{ios::badbit}
6125+
\tcode{ios_base::badbit}
61266126
is turned on\footnote{without causing an
61276127
\tcode{ios_base::failure}
61286128
to be thrown.}
@@ -6526,7 +6526,7 @@
65266526
the function endeavors
65276527
to generate the requested output.
65286528
If an exception is thrown during output, then
6529-
\tcode{ios::badbit}
6529+
\tcode{ios_base::badbit}
65306530
% .Fs new
65316531
is turned on\footnote{without causing an
65326532
\tcode{ios_base::failure}
@@ -7123,7 +7123,7 @@
71237123
const Iter end = mp.put(Iter(str.rdbuf()), intl, str, str.fill(), mon);
71247124

71257125
if (end.failed())
7126-
str.setstate(ios::badbit);
7126+
str.setstate(ios_base::badbit);
71277127
}
71287128
\end{codeblock}
71297129

@@ -11196,7 +11196,7 @@
1119611196
\effects
1119711197
Calls \tcode{sb.emit()}.
1119811198
If that call returns \tcode{false},
11199-
calls \tcode{setstate(ios::badbit)}.
11199+
calls \tcode{setstate(ios_base::badbit)}.
1120011200

1120111201
\pnum
1120211202
\begin{example}

source/numerics.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,7 @@
24172417
If bad input is encountered,
24182418
ensures that \tcode{v}'s state is unchanged by the operation
24192419
and
2420-
calls \tcode{is.setstate(ios::failbit)}
2420+
calls \tcode{is.setstate(ios_base::failbit)}
24212421
(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},
@@ -2809,7 +2809,7 @@
28092809
If bad input is encountered,
28102810
ensures that \tcode{d} is unchanged by the operation
28112811
and
2812-
calls \tcode{is.setstate(ios::failbit)}
2812+
calls \tcode{is.setstate(ios_base::failbit)}
28132813
(which may throw \tcode{ios_base::failure}\iref{iostate.flags}).
28142814

28152815
\expects

source/strings.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3482,7 +3482,7 @@
34823482

34833483
\pnum
34843484
If the function extracts no characters, it calls
3485-
\tcode{is.setstate(ios::failbit)},
3485+
\tcode{is.setstate(ios_base::failbit)},
34863486
which may throw
34873487
\tcode{ios_base::fail\-ure}\iref{iostate.flags}.
34883488

0 commit comments

Comments
 (0)