From 12c5143f73c0542077b519da7d906cf4fdc12cfc Mon Sep 17 00:00:00 2001 From: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> Date: Wed, 3 Aug 2022 15:47:44 -0700 Subject: [PATCH] Implement LWG-3701: Make `formatter, charT>` requirement explicit (#2957) Co-authored-by: Nicole Mazzuca --- stl/inc/format | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stl/inc/format b/stl/inc/format index 50ca187f1c..ef9f3af333 100644 --- a/stl/inc/format +++ b/stl/inc/format @@ -3331,9 +3331,12 @@ template <_Format_supported_charT _CharT> struct formatter : _Formatter_base {}; +template <_Format_supported_charT _CharT, size_t _Nx> +struct formatter<_CharT[_Nx], _CharT> : _Formatter_base<_CharT[_Nx], _CharT, _Basic_format_arg_type::_CString_type> {}; + template <_Format_supported_charT _CharT, size_t _Nx> struct formatter - : _Formatter_base {}; + : _Formatter_base<_CharT[_Nx], _CharT, _Basic_format_arg_type::_CString_type> {}; template <_Format_supported_charT _CharT, class _Traits, class _Allocator> struct formatter, _CharT>