forked from OSchip/llvm-project
Fix wrong iterator type
ELFEntityIterator does not implement RandomAccessIterator. It does not even implement BidirectionalIterator. This patch fixes LLD build issue when compiled with MSVC2013 with debug: MSVC's find_if checks if the start iterator is before the end iterator in the sense of operator< if it declares implementing RandomAccessIterator. If a class does not have operator<, it fails to compile. llvm-svn: 206825
This commit is contained in:
parent
36b3707be3
commit
97d484342c
|
@ -60,7 +60,7 @@ public:
|
|||
public:
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef EntT value_type;
|
||||
typedef std::random_access_iterator_tag iterator_category;
|
||||
typedef std::forward_iterator_tag iterator_category;
|
||||
typedef value_type &reference;
|
||||
typedef value_type *pointer;
|
||||
|
||||
|
|
Loading…
Reference in New Issue