diff options
| author | Jorge Timón <[email protected]> | 2017-06-19 01:45:23 +0200 |
|---|---|---|
| committer | Jorge Timón <[email protected]> | 2017-06-22 03:48:49 +0200 |
| commit | 33aed5bf89cf0337ab5eccadc50594930178039b (patch) | |
| tree | e112b2cd6c323ee1c84bddb957d1d824745d79e8 /src | |
| parent | Introduce src/reverse_iterator.hpp and include it... (diff) | |
| download | discoin-33aed5bf89cf0337ab5eccadc50594930178039b.tar.xz discoin-33aed5bf89cf0337ab5eccadc50594930178039b.zip | |
Fix const_reverse_iterator constructor (pass const ptr)
Diffstat (limited to 'src')
| -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 dc17e7ce4..02d860bb0 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; } |