[libcxx-commits] [PATCH] D99855: [libcxx] makes `iterator_traits`	C++20-aware
    Christopher Di Bella via Phabricator via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Mon Apr 19 09:16:33 PDT 2021
    
    
  
cjdb added inline comments.
================
Comment at: libcxx/test/std/iterators/iterator.primitives/iterator.traits/cxx20_iterator_traits.compile.pass.cpp:244
+
+  // Providing difference_type does not fully compensate for missing operator-(It, It).
+  friend MissingMinusIterIter operator-(MissingMinusIterIter, int);
----------------
Quuxplusone wrote:
> cjdb wrote:
> > I think declaring the operator as deleted would be a good idea.
> No, the point of this test is that the operator is missing (not in overload resolution at all). Anyway, this way is shorter, which is good.
In that case the type should be renamed to indicate this. "Missing" is ambiguous.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99855/new/
https://reviews.llvm.org/D99855
    
    
More information about the libcxx-commits
mailing list