llvm-project/libcxx/test/std/iterators/stream.iterators
Roger Ferrer Ibanez 6f56d3eee8 [libcxx] Define istream_iterator equality comparison operators out-of-line
Currently libc++ defines operator== and operator!= as friend functions in the
definition of the istream_iterator class template. Such definition has a subtle
difference from an out-of-line definition required by the C++ Standard: these
functions can only be found by argument-dependent lookup, but not by qualified
lookup.

This patch changes the definition, so that it conforms to the C++ Standard and
adds a check involving qualified lookup to the test suite.

Patch contributed by Mikhail Maltsev.

Differential Revision: https://reviews.llvm.org/D40415

llvm-svn: 320363
2017-12-11 13:54:58 +00:00
..
istream.iterator [libcxx] Define istream_iterator equality comparison operators out-of-line 2017-12-11 13:54:58 +00:00
istreambuf.iterator Placate unused variable warnings uncovered by improvements to clang's -Wunused-variable 2017-10-14 15:52:38 +00:00
iterator.range
ostream.iterator [libcxx] [test] Be compatible with LWG 2438 "std::iterator inheritance shouldn't be mandated". 2017-05-05 23:01:38 +00:00
ostreambuf.iterator [libcxx] [test] Be compatible with LWG 2438 "std::iterator inheritance shouldn't be mandated". 2017-05-05 23:01:38 +00:00
nothing_to_do.pass.cpp