Skip to content

Commit cc28e55

Browse files
author
Dmitry Bushev
committed
[llvm][Object] Add missing const qualifier for value_type in content_iterator.
value_type was defined as non-const for content_iterator, although it's methods returned a const pointers/references. This prevented it from using in some algorithms from STLExtras.h
1 parent 4f26edd commit cc28e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Object/SymbolicFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ template <class content_type> class content_iterator {
7171

7272
public:
7373
using iterator_category = std::forward_iterator_tag;
74-
using value_type = content_type;
74+
using value_type = const content_type;
7575
using difference_type = std::ptrdiff_t;
7676
using pointer = value_type *;
7777
using reference = value_type &;

0 commit comments

Comments
 (0)