operator<<(ostream,StringData) ignores stream state.

XMLWordPrintableJSON

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Portability
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      ostream << std::setw(5) << expr

      behaves differently depending on whether expr is a std::string or a StringData.

      libc++'s operator<<(ostream, string_view) is complex, but accessible for reuse.
      https://github.com/llvm-mirror/libcxx/blob/0f25cd9/include/ostream#L714

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: