-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
P2321R2 zip: Make tuple
, pair
, and vector<bool>::reference
indirectly_writable
#2687
Conversation
c3509f7
to
7869d61
Compare
tuple
, pair
, and vector<bool>::reference
indirectly_writable
7869d61
to
6a4351b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
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.
Alright, I'm about halfway through the review; I'll comment and submit now and continue later.
- tuple
- type_traits
- vector
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.
The rest looks reasonable to me; the only concern I have is using enable_if
when requires
would work.
Because EDG doesn't fully support concepts yet, we use The eventual cleanup of this is tracked by #602. |
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.
Given that we can't use requires
here, this looks good to me; on a side note, it feels very weird to spend like 4 hours reviewing something and still not have any comments.
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.
This looks good to me; I had Billy look over my shoulder at it as well.
The only concern I had was adding a call to GetFileInformationByHandleEx
, but was told it was inexpensive (and I noticed we're doing two calls anyways to get both basic and standard info), so I'm no longer concerned.
@strega-nil-ms I think your last comment was meant for #2373? |
Thanks, this is great! 😻 I saw no issues with the extensive template machinery, so I went ahead and pushed changes for the minor issues and nitpicks I noticed (the concepts guard and the |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for implementing this foundational machinery for |
This implements the uninteresting parts of P2321R2, namely changes to
tuple
,pair
andvector<bool>::reference
to make them usable as proxy references.Partially addresses #2252.