From: Jonathan Wakely Date: Thu, 23 Feb 2017 18:25:22 +0000 (+0000) Subject: Ensure includes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb701078b11c9e539dc21a4ddec517af6575c265;p=gcc.git Ensure includes * include/experimental/iterator: Include . * testsuite/experimental/iterator/requirements.cc: Check for contents of . From-SVN: r245686 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0b02dcac602..6193f4e5ae6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2017-02-23 Jonathan Wakely + + * include/experimental/iterator: Include . + * testsuite/experimental/iterator/requirements.cc: Check for contents + of . + 2017-02-19 Dinka Ranns C++17 GB50 resolution diff --git a/libstdc++-v3/include/experimental/iterator b/libstdc++-v3/include/experimental/iterator index e8ecb34a7d0..8a8395da759 100644 --- a/libstdc++-v3/include/experimental/iterator +++ b/libstdc++-v3/include/experimental/iterator @@ -39,10 +39,9 @@ # include #else -#include +#include #include -#include -#include +#include namespace std _GLIBCXX_VISIBILITY(default) { diff --git a/libstdc++-v3/testsuite/experimental/iterator/requirements.cc b/libstdc++-v3/testsuite/experimental/iterator/requirements.cc index 8a8e79e2457..5fa58724b4b 100644 --- a/libstdc++-v3/testsuite/experimental/iterator/requirements.cc +++ b/libstdc++-v3/testsuite/experimental/iterator/requirements.cc @@ -19,7 +19,7 @@ // This is a compile-only test with minimal includes #include -#include +#include // No guarantee that includes this! using namespace std::experimental; @@ -55,3 +55,13 @@ tester ic; tester ww; tester iw; #endif + +std::ostream& os(); + +// Ensure that contents of are defined by : +std::reverse_iterator ii; +std::move_iterator mi; +std::istream_iterator isi; +std::ostream_iterator osi(os()); +std::istreambuf_iterator isbi; +std::ostreambuf_iterator osbi(os());