[libcxx-commits] [PATCH] D101707: [libcxx] makes comparison operators for `std::*_ordering` types hidden friends

Christopher Di Bella via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 1 21:02:17 PDT 2021


cjdb created this revision.
cjdb added reviewers: ldionne, BRevzin.
cjdb requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

The standard leaves it up to the implementation to decide whether or not
these operators are hidden friends. There are several (well-documented)
reasons to prefer hidden friends, as well as an argument for improved
readability.

Depends on D100342 <https://reviews.llvm.org/D100342>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101707

Files:
  libcxx/include/compare

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101707.342201.patch
Type: text/x-patch
Size: 16095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210502/0ff4d735/attachment-0001.bin>


More information about the libcxx-commits mailing list