You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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
As a Defect Report against old standard modes. Fixes#5618.
As a result of DR-backing P3223R2, the new overload is templated, and thus this PR happens to "constrain the new overload to prevent ambiguities" and keeps in.ignore(100, -1L) well-formed.
frederick-vs-ja
changed the title
Implement P3223R2 Making std::istream::ignore Less Surprising
Implement P3223R2 Making std::istream::ignore() Less Surprising
Jun 23, 2025
frederick-vs-ja
changed the title
Implement P3223R2 Making std::istream::ignore() Less Surprising
Implement P3223R2 Making istream::ignore() Less Surprising
Jun 23, 2025
@frederick-vs-ja (This is not a review. Just a couple of questions.) Was the paper voted in as DR? I guess not. My reading of the Standard is that resolving the ambiguity is not required is that so?
I made an attempt to implement the paper in libc++ but Windows is giving me troubles llvm/llvm-project#147007
I guess not, either. But according to the paper issue I think it should be treated as a DR.
My reading of the Standard is that resolving the ambiguity is not required is that so?
Yes. In this PR the ambiguity is resolved "by accident", which is a consequence of backporting. I don't think the ambiguity resolution is disallowed, either.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As a Defect Report against old standard modes. Fixes #5618.
As a result of DR-backing P3223R2, the new overload is templated, and thus this PR happens to "constrain the new overload to prevent ambiguities" and keeps
in.ignore(100, -1L)
well-formed.