summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/iterator.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/ADT/iterator.h b/include/llvm/ADT/iterator.h
index e29225ad6c..e64ae9abb9 100644
--- a/include/llvm/ADT/iterator.h
+++ b/include/llvm/ADT/iterator.h
@@ -109,13 +109,14 @@ protected:
iterator_adaptor_base() {}
- template <
- typename U,
- typename = typename std::enable_if<
+ template <typename U>
+ explicit iterator_adaptor_base(
+ U &&u,
+ typename std::enable_if<
!std::is_base_of<typename std::remove_cv<
typename std::remove_reference<U>::type>::type,
- DerivedT>::value>::type>
- explicit iterator_adaptor_base(U &&u)
+ DerivedT>::value,
+ int>::type = 0)
: I(std::forward<U &&>(u)) {}
public: