Title
[filesys.ts] [PDTS] Consider using quoted manipulators
Status
open
Section
[path.io]
Submitter
FI-8

Created on 2014-01-20.00:00:00 last changed 89 months ago

Messages

Date: 2016-01-28.01:00:35

Proposed resolution:

  1. Change 8.6.1 [path.io] as indicated:

    template <class charT, class traits>
    basic_ostream<charT, traits>&
    operator<<(basic_ostream<charT, traits>& os, const path& p);
    

    Effects: os << quoted(p.string<charT, traits>()).

    [Note: Pathnames containing spaces require special handling by the user to avoid truncation when read by the extractor. โ€” end note]

    [Note: The quoted function is described in ISO 14882:2014 ยง27.7.6. โ€” end note]

    Returns: os

    template <class charT, class traits>
    basic_istream<charT, traits>&
    operator>>(basic_istream<charT, traits>& is, path& p);
    

    Effects:

    basic_string<charT, traits> tmp;
    is >> quoted(tmp);
    p = tmp;
    

Date: 2014-02-12.00:00:00

[ 2014-02-12 Applied LWG/SG-3 Issaquah wording tweak to use ISO doc number for reference to C++14. ]

Date: 2014-02-15.00:00:00

[ 2014-02-10, Daniel suggests wording ]

Date: 2016-01-31.20:31:05

Addresses: filesys.ts

"[Note: Pathnames containing spaces require special handling by the user to avoid truncation when read by the extractor. โ€” end note]" sounds like a quoted manipulator as specified in the C++14 draft in [quoted.manip] would be useful.

Consider using quoted manipulators for stream insertion and extraction.

History
Date User Action Args
2017-07-30 20:10:41adminsetstatus: wp -> open
2016-01-28 01:00:35adminsetmessages: + msg7759
2016-01-28 01:00:35adminsetmessages: + msg7758
2016-01-28 01:00:35adminsetmessages: + msg7757
2014-01-20 00:00:00admincreate