mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[ADT] Remove make_pointe{e,r}_iterator, because it seems to crash MSVC 2015.
llvm-svn: 283791
This commit is contained in:
parent
95da712509
commit
14c600c960
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user