Quuxplusone / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
https://p1144.godbolt.org/z/jf67zx5hq
Other
1 stars 2 forks source link

[libc++] [string_view] Remove operators made redundant by C++20 #15

Closed Quuxplusone closed 1 year ago

Quuxplusone commented 1 year ago

Thanks to Giuseppe D'Angelo for pointing this out on the cpplang Slack!

The example implementation here... https://eel.is/c++draft/string.view.comparison#example-1 ...was necessary when it was written, in C++17, but in C++20 we don't need that complexity anymore, because of the reversed candidates that are synthesized by the compiler.

Quuxplusone commented 1 year ago

Merged aa8601dc6ddd110a3465e85f2f1db89c8f9efcb2!