aboutsummaryrefslogtreecommitdiff
path: root/src/prevector.h
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2017-06-19 01:45:23 +0200
committerJorge Timón <jtimon@jtimon.cc>2017-06-22 03:48:49 +0200
commit33aed5bf89cf0337ab5eccadc50594930178039b (patch)
treee112b2cd6c323ee1c84bddb957d1d824745d79e8 /src/prevector.h
parent300851ec1690e545485e154b1a4df55bec7621ae (diff)
Fix const_reverse_iterator constructor (pass const ptr)
Diffstat (limited to 'src/prevector.h')
-rw-r--r--src/prevector.h2
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; }