diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2017-06-19 01:45:23 +0200 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2017-06-22 03:48:49 +0200 |
commit | 33aed5bf89cf0337ab5eccadc50594930178039b (patch) | |
tree | e112b2cd6c323ee1c84bddb957d1d824745d79e8 /src/prevector.h | |
parent | 300851ec1690e545485e154b1a4df55bec7621ae (diff) |
Fix const_reverse_iterator constructor (pass const ptr)
Diffstat (limited to 'src/prevector.h')
-rw-r--r-- | src/prevector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prevector.h b/src/prevector.h index dc17e7ce4b..02d860bb00 100644 --- a/src/prevector.h +++ b/src/prevector.h @@ -132,7 +132,7 @@ public: typedef const T* pointer; typedef const T& reference; typedef std::bidirectional_iterator_tag iterator_category; - const_reverse_iterator(T* ptr_) : ptr(ptr_) {} + const_reverse_iterator(const T* ptr_) : ptr(ptr_) {} const_reverse_iterator(reverse_iterator x) : ptr(&(*x)) {} const T& operator*() const { return *ptr; } const T* operator->() const { return ptr; } |