-
Notifications
You must be signed in to change notification settings - Fork 1.6k
P0896R4 stream iterator changes #1281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Affects `istream_iterator`, `ostream_iterator`, `istreambuf_iterator`, and `ostreambuf_iterator`.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
StephanTLavavej
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a handful of nitpicks and one significant question about noexcept strengthening. Thanks!
mnatsuhara
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question on test coverage, otherwise looks great! :)
|
We love iterator changes because we're not iter-haters! ❤️ |
Nothing exotic here, really, just adding default constructors and (for the output iterators) difference types so the stream iterators properly model the C++20 iterator concepts.
I did strengthen some
noexcepton my way through, and fixed what appears to be a longstanding bug:ostream_iterator's data members should beprivateinstead ofprotected.Partially addresses #39.