forked from CaseyCarter/cmcstl2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix basic_iterator for output cursors that don't provide post_increme…
…nt(). * 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 branch information
1 parent
b704dad
commit 862126a
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters