Skip to content

Commit 486ed41

Browse files
burblebeetkoeppe
authored andcommitted
LWG2392 "character type" is used but not defined
1 parent 15b77ba commit 486ed41

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

source/future.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,10 +2124,12 @@
21242124
\tcode{codecvt_utf16}, and \tcode{codecvt_utf8_utf16}:
21252125
\begin{itemize}
21262126
\item
2127-
\tcode{Elem} is the wide-character type, such as
2127+
\tcode{Elem} is one of
21282128
\keyword{wchar_t}, \keyword{char16_t}, or \keyword{char32_t}.
21292129
\item
2130-
\tcode{Maxcode} is the largest wide-character code that the facet
2130+
\tcode{Maxcode} is the largest value of \tcode{Elem}
2131+
converted to \tcode{\keyword{unsigned} \keyword{long}}
2132+
that the facet
21312133
will read or write without reporting a conversion error.
21322134
\item
21332135
If \tcode{(Mode \& consume_header)}, the facet shall consume an

source/iostreams.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@
128128
\pnum
129129
In the classes of \ref{input.output}, a template parameter with name
130130
\tcode{charT} represents a member of the set of types containing \tcode{char}, \keyword{wchar_t},
131-
and any other \impldef{set of character types that iostreams templates can be instantiated for}
132-
character types that meet the requirements for a character on which any of
131+
and any other \impldef{set of character container types that iostreams templates can be instantiated for}
132+
character container types\iref{defns.character.container}
133+
that meet the requirements for a character on which any of
133134
the iostream components can be instantiated.
134135

135136
\rSec2[iostreams.threadsafety]{Thread safety}
@@ -6361,7 +6362,7 @@
63616362
If a formatted output function of a stream \tcode{os} determines
63626363
padding, it does so as
63636364
follows. Given a \tcode{charT} character sequence \tcode{seq} where
6364-
\tcode{charT} is the character type of the stream, if
6365+
\tcode{charT} is the character container type of the stream, if
63656366
the length of \tcode{seq} is less than \tcode{os.width()}, then enough copies of
63666367
\tcode{os.fill()} are added to this sequence as necessary to pad to a
63676368
width of \tcode{os.width()} characters. If
@@ -6705,7 +6706,7 @@
67056706
of \tcode{out}. Constructs a character sequence \tcode{seq}.
67066707
If \tcode{c} has type
67076708
\tcode{char}
6708-
and the character type of the stream is not
6709+
and the character container type of the stream is not
67096710
\tcode{char},
67106711
then \tcode{seq} consists of
67116712
\tcode{out.widen(c)};

source/locales.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@
394394
respectively\iref{iterator.requirements}.
395395
A template parameter with name \tcode{C} represents
396396
the set of types containing \keyword{char}, \keyword{wchar_t}, and any other
397-
\impldef{set of character types
397+
\impldef{set of character container types
398398
that iostreams templates can be instantiated for}
399-
character types
399+
character container types\iref{defns.character.container}
400400
that meet the requirements for a character
401401
on which any of the iostream components can be instantiated.
402402
A template parameter with name \tcode{International}

0 commit comments

Comments
 (0)