Skip to content

Fix basic_iterator for output cursors that don't provide post_increment().#60

Open
tahonermann wants to merge 5 commits intoCaseyCarter:masterfrom
tahonermann:master
Open

Fix basic_iterator for output cursors that don't provide post_increment().#60
tahonermann wants to merge 5 commits intoCaseyCarter:masterfrom
tahonermann:master

Conversation

@tahonermann
Copy link

  • Added a post-increment operator overload to basic_iterator that returns a
    self reference for non-input cursors that don't provide post_increment().

  • Added a test to validate that output iterators that hold state are correctly
    updated for post-increment dereference assignment.

  • Updated a static_assert for ostream_iterator to reflect that post-increment
    now returns a self reference. This is consistent with the implementation of
    ostream_iterator in libstdc++.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants