[llvm] r283791 - [ADT] Remove make_pointe{e, r}_iterator, because it seems to crash MSVC 2015.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 10 12:29:38 PDT 2016
Author: jlebar
Date: Mon Oct 10 14:29:37 2016
New Revision: 283791
URL: http://llvm.org/viewvc/llvm-project?rev=283791&view=rev
Log:
[ADT] Remove make_pointe{e,r}_iterator, because it seems to crash MSVC 2015.
Modified:
llvm/trunk/include/llvm/ADT/iterator.h
Modified: llvm/trunk/include/llvm/ADT/iterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/iterator.h?rev=283791&r1=283790&r2=283791&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/iterator.h (original)
+++ llvm/trunk/include/llvm/ADT/iterator.h Mon Oct 10 14:29:37 2016
@@ -256,13 +256,6 @@ struct pointee_iterator
T &operator*() const { return **this->I; }
};
-template <typename WrappedIteratorT>
-pointee_iterator<typename std::decay<WrappedIteratorT>::type>
-make_pointee_iterator(WrappedIteratorT &&I) {
- return pointee_iterator<typename std::decay<WrappedIteratorT>::type>(
- std::forward<WrappedIteratorT>(I));
-}
-
template <typename WrappedIteratorT,
typename T = decltype(&*std::declval<WrappedIteratorT>())>
class pointer_iterator
@@ -280,13 +273,6 @@ public:
const T &operator*() const { return Ptr = &*this->I; }
};
-template <typename WrappedIteratorT>
-pointer_iterator<typename std::decay<WrappedIteratorT>::type>
-make_pointer_iterator(WrappedIteratorT &&I) {
- return pointer_iterator<typename std::decay<WrappedIteratorT>::type>(
- std::forward<WrappedIteratorT>(I));
-}
-
} // namespace llvm
#endif
More information about the llvm-commits
mailing list