From c44a727ee43fa143528a51765905943fc681bd8b Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 23 May 2017 18:55:32 +0000 Subject: [PATCH] Implement LWG#2790: Remove istreambuf_iterator::operator->. It never did anything useful. llvm-svn: 303675 --- libcxx/include/iterator | 1 - .../istreambuf.iterator_op_astrk/arrow.pass.cpp | 28 ---------------------- libcxx/www/cxx1z_status.html | 4 ++-- 3 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator_op_astrk/arrow.pass.cpp diff --git a/libcxx/include/iterator b/libcxx/include/iterator index 4aa4474..d163ab1 100644 --- a/libcxx/include/iterator +++ b/libcxx/include/iterator @@ -990,7 +990,6 @@ public: _LIBCPP_INLINE_VISIBILITY char_type operator*() const {return static_cast(__sbuf_->sgetc());} - _LIBCPP_INLINE_VISIBILITY char_type* operator->() const {return nullptr;} _LIBCPP_INLINE_VISIBILITY istreambuf_iterator& operator++() { __sbuf_->sbumpc(); diff --git a/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator_op_astrk/arrow.pass.cpp b/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator_op_astrk/arrow.pass.cpp deleted file mode 100644 index e3bf5e2b..0000000 --- a/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator_op_astrk/arrow.pass.cpp +++ /dev/null @@ -1,28 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// istreambuf_iterator - -// pointer operator->() const; - -#include -#include -#include - -typedef char C; -int main () -{ - std::istringstream s("filename"); - std::istreambuf_iterator i(s); - - (*i).~C(); // This is well-formed... - i->~C(); // ... so this should be supported! -} diff --git a/libcxx/www/cxx1z_status.html b/libcxx/www/cxx1z_status.html index 101ad43..2cc1430 100644 --- a/libcxx/www/cxx1z_status.html +++ b/libcxx/www/cxx1z_status.html @@ -444,7 +444,7 @@ 2787§[file_status.cons] doesn't match class definitionKonaComplete 2788basic_string range mutators unintentionally require a default constructible allocatorKonaComplete 2789Equivalence of contained objectsKonaComplete - 2790Missing specification of istreambuf_iterator::operator->Kona + 2790Missing specification of istreambuf_iterator::operator->KonaComplete 2794Missing requirements for allocator pointersKona 2795§[global.functions] provides incorrect example of ADL useKonaComplete 2796tuple should be a literal typeKonaComplete @@ -489,7 +489,7 @@ -

Last Updated: 11-May-2017

+

Last Updated: 23-May-2017

-- 2.7.4