mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-03 06:48:20 +00:00
28 lines
631 B
Diff
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_];
|
|
}
|