Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-1047

string function std::getline incorrectly documented

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: Documentation
    • Labels:
      None
    • Severity:
      Usability

      Description

      The documentation for std::getline is incorrect:

      template <class Stream, class charT, class traits, class Allocator>
      basic_istream<charT, traits>
      getline(basic_istream<charT, traits> is,
      <charT, traits allocator> str, charT delim);

      where the second argument should be basic_string<charT, traits, allocator>& str

      http://stdcxx.apache.org/doc/stdlibref/basic-string.html#idx390

        Attachments

          Activity

            People

            • Assignee:
              sebor Martin Sebor
              Reporter:
              bwy Benjamin Wolsey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: