<format>: charT
for std::formatter<basic_string_view>
is not supposed to be template parameter
#5278
Labels
format
C++20/23 format
LWG issue needed
A wording defect that should be submitted to LWG as a new issue
https://eel.is/c++draft/format.formatter.spec#2 says
meaning the two specializations should be written separately
but they are implemented as
STL/stl/inc/__msvc_formatter.hpp
Lines 131 to 132 in d43d49a
STL/stl/inc/__msvc_formatter.hpp
Lines 276 to 284 in d43d49a
This may cause trouble if users add templated specializations but
basic_string_view
is not excluded from its constraint, but only supportingchar
(Godbolt link):Then the specialization is ambiguous
The text was updated successfully, but these errors were encountered: