-
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
Don't move from contained value of optional<const T> #2460
Conversation
...unless `T` supports it, of course. Fixes microsoft#2458 Fixes DevCom-1628644 / VSO-1458298 / AB#1458298
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.
Note to self: that issue was because _Value
defined as remove_const_t<_Ty> _Value;
So we always could move _Value
. and now with operator*
we are taking into account the const
of _Ty
.
This comment was marked as resolved.
This comment was marked as resolved.
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for fixing this moving bug! 🐛 🐞 😸 |
...unless
T
supports it, of course.Fixes #2458
Fixes DevCom-1628644 / VSO-1458298 / AB#1458298