Skip to content

Commit

Permalink
Implement LWG-3701: Make `formatter<remove_cvref_t<const charT[N]>, c…
Browse files Browse the repository at this point in the history
…harT>` requirement explicit (microsoft#2957)

Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
  • Loading branch information
strega-nil-ms and strega-nil committed Aug 6, 2022
1 parent 651f8d6 commit 77ab93f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -3331,9 +3331,12 @@ template <_Format_supported_charT _CharT>
struct formatter<const _CharT*, _CharT>
: _Formatter_base<const _CharT*, _CharT, _Basic_format_arg_type::_CString_type> {};

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<const _CharT[_Nx], _CharT>
: _Formatter_base<const _CharT[_Nx], _CharT, _Basic_format_arg_type::_CString_type> {};
: _Formatter_base<_CharT[_Nx], _CharT, _Basic_format_arg_type::_CString_type> {};

template <_Format_supported_charT _CharT, class _Traits, class _Allocator>
struct formatter<basic_string<_CharT, _Traits, _Allocator>, _CharT>
Expand Down

0 comments on commit 77ab93f

Please sign in to comment.