Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions llvm/include/llvm/ADT/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ class iterator_adaptor_base
return *static_cast<DerivedT *>(this);
}
using BaseT::operator-;
template <bool Enabled = bool(BaseT::IsRandomAccess),
std::enable_if_t<Enabled, int> = 0>
difference_type operator-(const DerivedT &RHS) const {
static_assert(
BaseT::IsRandomAccess,
Expand Down