-
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
Implement LWG-3724: decay-copy
should be constrained
#2903
Conversation
unsigned int size_ = 0u; | ||
|
||
weird_string_view() = default; | ||
explicit weird_string_view(const weird_string_view&) = default; |
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.
copy_constructible
requires implicit copy construction via convertible_to<const T&, T>
, so this is a move-only view. (No change requested.)
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for implementing so many LWG issue resolutions and improving conformance! 😻 😻 😻 😻 |
Towards #2872.
Only one case in the
operator()
of_All_fn
(the type ofviews::all
) needs additional constraints. MSVC STL has already constrained it withconstructible_from
, but sometimesconstructible_from
seems still insufficient.I'm not sure whether the difference between
constructible_from
andconvertible_to
is observable outside of IFNDR, or whetherweird_string_view
in the test file actually modelsview
.