std::variant::operator<=> is missing a requires clause ensuring that
operator<=> only exists when all of the types in the variant are
three_way_comparable.
Add the missing requires clause and adjust the existing test which was
incorrect.
Paths
| Differential D136050
[libc++] Fix missing requires clause on variant operator<=> ClosedPublic Authored by jloser on Oct 16 2022, 7:26 PM.
Details
Summary std::variant::operator<=> is missing a requires clause ensuring that Add the missing requires clause and adjust the existing test which was
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 17 2022, 9:08 AM Closed by commit rGdd9afdbb2ab4: [libc++] Fix missing requires clause on variant operator<=> (authored by jloser). · Explain WhyOct 17 2022, 3:27 PM This revision was automatically updated to reflect the committed changes. jloser marked an inline comment as done. Comment Actions thanks! LGTM. i must have been looking at a reference that's missing that requires... Comment Actions
No worries, easy to fix.
Revision Contents
Diff 468350 libcxx/include/variant
libcxx/test/std/utilities/variant/variant.relops/three_way.pass.cpp
|
Please add the requires here too.