[all-commits] [llvm/llvm-project] aa8601: [libc++] [string_view] Remove operators made redun...

Amirreza Ashouri via All-commits all-commits at lists.llvm.org
Mon Sep 18 07:30:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa8601dc6ddd110a3465e85f2f1db89c8f9efcb2
      https://github.com/llvm/llvm-project/commit/aa8601dc6ddd110a3465e85f2f1db89c8f9efcb2
  Author: Amirreza Ashouri <39487863+AMP999 at users.noreply.github.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
    M libcxx/include/string_view

  Log Message:
  -----------
  [libc++] [string_view] Remove operators made redundant by C++20 (#66206)

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

The example implementation in 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.




More information about the All-commits mailing list