[Bug libstdc++/81857] istreambuf_iterator not work as input iterator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81857 --- Comment #3 from Petr Ovtchenkov --- Created attachment 42042 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42042=edit proposed test for issue https://gcc.gnu.org/ml/libstdc++/2017-08/msg00036.html May be worth to add (see issue2471) words to copy_n spec: "copy_n return result + n (i.e. increment OutputIterator n times) and increment InputIterator max(0, n - 1)." to avoid ambiguity?
[Bug libstdc++/81857] istreambuf_iterator not work as input iterator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81857 --- Comment #2 from Petr Ovtchenkov --- Related problem: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50119, commit 1a1dad283 in git's reflection.
[Bug libstdc++/81857] istreambuf_iterator not work as input iterator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81857 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #1 from TC --- istreambuf_iterator is specified to call sbumpc() only on increment, not upon construction; the implementation is as specified. The copy_n aspect is https://cplusplus.github.io/LWG/issue2471.