Repository navigation
Implement LWG-4293: span::subspan/first/last chooses wrong constructor when T is const-qualified bool - #6437
Conversation
… when T is const-qualified bool
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
If CI fails in the future (it's unclear why the ARM64 build failed; no reason seems to be logged and I haven't seen this happen before), you can comment in the |
Thanks for the tip! I'll use the #stalled-checks channel next time instead of pushing an extra commit. |
|
I'm mirroring this to the MSVC-internal repo. Please notify me if any further changes are pushed, otherwise no action is required. |
f7e4bdb
into
microsoft:main
😻 🚀 🎉 |
Fixes #6239
LWG-4293 changes the Effects of
span::first/last/subspantodirect-initialize the returned span (
(ptr, count)) instead of brace-initializing,so an
initializer_listconstructor can never hijack these calls.Since P2447R6 was reverted and MSVC STL never implemented it anyway, this has
zero functional impact — just a wording-sync per "Do What The Standard Says".