0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-03 06:48:20 +00:00
termux-packages/packages/openethereum/parity-rocksdb-sys-0.5.6-iterator.diff
2024-08-24 11:51:54 +08:00

28 lines
631 B
Diff

--- a/util/autovector.h
+++ b/util/autovector.h
@@ -120,22 +120,12 @@
}
// -- Reference
- reference operator*() {
+ reference operator*() const {
assert(vect_->size() >= index_);
return (*vect_)[index_];
}
- const_reference operator*() const {
- assert(vect_->size() >= index_);
- return (*vect_)[index_];
- }
-
- pointer operator->() {
- assert(vect_->size() >= index_);
- return &(*vect_)[index_];
- }
-
- const_pointer operator->() const {
+ pointer operator->() const {
assert(vect_->size() >= index_);
return &(*vect_)[index_];
}