[libcxx-commits] [PATCH] D145285: [libc++] Refactor __less

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 7 13:32:42 PST 2023


EricWF added inline comments.


================
Comment at: libcxx/include/__algorithm/comp.h:37
+struct __less<void, void> {
+  template <class _Tp, class _Up>
+  _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 bool operator()(const _Tp& __lhs, const _Up& __rhs) const {
----------------
EricWF wrote:
> This doesn't at all seem correct to me. 
> 
> This takes away an explicit conversion
*The implicit conversion.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145285/new/

https://reviews.llvm.org/D145285



More information about the libcxx-commits mailing list