Skip to content

Commit b3f7a0c

Browse files
burblebeetkoeppe
authored andcommitted
LWG3944 Formatters converting sequences of char to sequences of wchar_t
1 parent af9e678 commit b3f7a0c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

source/utilities.tex

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17147,11 +17147,27 @@
1714717147
\end{codeblock}
1714817148
\begin{note}
1714917149
Specializations such as \tcode{formatter<wchar_t, char>}
17150-
and \tcode{formatter<const char*, wchar_t>}
1715117150
that would require implicit
1715217151
multibyte / wide string or character conversion are disabled.
1715317152
\end{note}
1715417153

17154+
\pnum
17155+
The header \libheaderdef{format} provides
17156+
the following disabled specializations:
17157+
\begin{itemize}
17158+
\item
17159+
The string type specializations
17160+
\begin{codeblock}
17161+
template<> struct formatter<char*, wchar_t>;
17162+
template<> struct formatter<const char*, wchar_t>;
17163+
template<size_t N> struct formatter<char[N], wchar_t>;
17164+
template<class traits, class Allocator>
17165+
struct formatter<basic_string<char, traits, Allocator>, wchar_t>;
17166+
template<class traits>
17167+
struct formatter<basic_string_view<char, traits>, wchar_t>;
17168+
\end{codeblock}
17169+
\end{itemize}
17170+
1715517171
\pnum
1715617172
For any types \tcode{T} and \tcode{charT} for which
1715717173
neither the library nor the user provides

0 commit comments

Comments
 (0)