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

string function std::getline incorrectly documented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.0.0
    • Documentation
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: