This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++17 status.
quoted
should work with basic_string_view
Section: 31.7.9 [quoted.manip] Status: C++17 Submitter: Marshall Clow Opened: 2016-10-27 Last modified: 2017-07-30
Priority: 0
View all other issues in [quoted.manip].
View all issues with C++17 status.
Discussion:
Quoted output for strings was added for C++14. But when we merged string_view
from the Library Fundamentals TS, we did not add support for quoted output of
basic_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 of
basic_ostream
with member type char_type
the same as charT
and with member type traits_type
which in the second and third forms
is the same as traits
, then the expression out << quoted(s, delim, escape)
behaves as a formatted output function (27.7.3.6.1) of out
. This forms a character
sequence seq
, initially consisting of the following elements: