This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++17 status.
quoted should work withbasic_string_viewSection: 31.7.9[quoted.manip]Status:C++17Submitter: Marshall ClowOpened: 2016-10-27Last modified: 2017-07-30
Priority:0
View all otherissues in [quoted.manip].
View all issues withC++17 status.
Discussion:
Quoted output for strings was added for C++14. But when we mergedstring_viewfrom the Library Fundamentals TS, we did not add support for quoted output ofbasic_string_view
[2016-11-12, Issaquah]
Sat AM: Priority 0; move to Ready
13 -> 13 in paragraph modification; and T14 -> T15
Proposed resolution:
This wording is relative to N4606.
Add to the end of the <iomanip> synopsis in [iostream.format.overview]
template <class charT, class traits> T15 quoted(basic_string_view<charT, traits> s, charT delim = charT(’"’), charT escape = charT(’\\’));
Add to [quoted.manip] at the end of p2:
template <class charT, class traits>unspecified quoted(basic_string_view<charT, traits> s, charT delim = charT(’"’), charT escape = charT(’\\’));
Modify [quoted.manip]/3 as follows:
Returns: An object of unspecified type such that if out is an instance ofbasic_ostream with member typechar_type the same ascharTand with member typetraits_type which in the secondand third formsis the same astraits, then the expressionout << quoted(s, delim, escape)behaves as a formatted output function (27.7.3.6.1) ofout. This forms a charactersequenceseq, initially consisting of the following elements: