[libcxx-commits] [PATCH] D128864: [libc++] Fix algorithms which use reverse_iterator
Konstantin Varlamov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 21 02:34:09 PDT 2022
var-const added inline comments.
================
Comment at: libcxx/include/__iterator/reverse_iterator.h:429
+ _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const _AlgRevIter& __lhs, const _AlgRevIter& __rhs) {
+ return __lhs.base() == __rhs.base();
+ }
----------------
philnik wrote:
> var-const wrote:
> > Hmm, so this expression is not ambiguous, but when it's used as a constraint in a `requires` clause, it is considered ambiguous? Am I missing something?
> No, that's exactly the case.
Interesting. Why is that?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128864/new/
https://reviews.llvm.org/D128864
More information about the libcxx-commits
mailing list