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

typo in User's Guide, 2.3.1 Input Stream Iterators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2
    • Documentation
    • None
    • Compiler Error

    Description

      As noted in this post, there's a typo in section 2.3 of the User's Guide. The snippet of code doesn't compile.

      I saw strange example in Apache C++ Standard Library User's Guide

      http://stdcxx.apache.org/doc/stdlibug/2-3.html

      std::istream_iterator<int, char>::iterator where = std::find(intstream, eof, 7);

      I didn't compile this example.

      I don't understand why it need ::itrerator and why compiler didn't compile it?

      Is it wrong example?

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h