hanchenye-llvm-project/libcxx
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
..
benchmarks [locale] Avoid copy of __atoms when char_type is char 2017-06-14 23:17:45 +00:00
cmake Fix installation of cxxabi.h through libc++. 2017-11-25 23:39:17 +00:00
docs Corrected a typo in the building libc++ docs 2017-12-03 10:18:35 +00:00
fuzzing Added include for <cassert> 2017-11-08 20:25:47 +00:00
include [libcxx] Define istream_iterator equality comparison operators out-of-line 2017-12-11 13:54:58 +00:00
lib [libc++] Create install-stripped targets 2017-12-06 21:03:42 +00:00
src [libcxx] Support getentropy as a source of randomness for std::random_device 2017-12-01 06:34:33 +00:00
test [libcxx] Define istream_iterator equality comparison operators out-of-line 2017-12-11 13:54:58 +00:00
utils Attempt to fix template depth test failures on older Clang versions 2017-11-19 09:46:34 +00:00
www Add issue 2587, which was missed 2017-12-05 03:51:16 +00:00
.arcconfig [libcxx] Set up .arcconfig to point to new Diffusion CXX repository 2017-12-04 17:55:28 +00:00
.clang-format Make clang-format use C++03 syntax 2017-04-15 02:45:43 +00:00
.gitignore Implement N4606 optional 2016-10-12 07:46:20 +00:00
CMakeLists.txt Include AddLLVM needed for tests in the right context 2017-12-01 03:16:50 +00:00
CREDITS.TXT Update C++2a status and add Glen to CREDITS.TXT. Reviewed as https://reviews.llvm.org/D40379 2017-11-23 14:50:56 +00:00
LICENSE.TXT Update year to 2017 2017-01-03 11:20:43 +00:00
NOTES.TXT Update doc and various cleanup 2016-12-23 20:00:13 +00:00
TODO.TXT Add list of filesystem NB comments to TODO.TXT so they can be tracked separately 2017-03-06 21:23:36 +00:00
appveyor-reqs-install.cmd Update Appveyor LLVM install link to be current and non-broken 2017-11-15 01:37:11 +00:00
appveyor.yml Rename Appveyor install helper script. 2017-05-10 02:43:02 +00:00