Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.2.1
-
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?