File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ struct MaybeOwnedVector {
22
22
using self_type = MaybeOwnedVector<T>;
23
23
using iterator = typename std::vector<T>::iterator;
24
24
using const_iterator = typename std::vector<T>::const_iterator;
25
- using reference = typename std::vector<T>::reference;
26
- using const_reference = typename std::vector<T>::const_reference;
27
25
using size_type = typename std::vector<T>::size_type;
28
26
29
27
bool is_owned = true ;
@@ -166,15 +164,15 @@ struct MaybeOwnedVector {
166
164
return c_ptr[idx];
167
165
}
168
166
169
- iterator at (size_type pos) {
167
+ T& at (size_type pos) {
170
168
FAISS_ASSERT_MSG (
171
169
is_owned,
172
170
" This operation cannot be performed on a viewed vector" );
173
171
174
172
return owned_data.at (pos);
175
173
}
176
174
177
- const_iterator at (size_type pos) const {
175
+ const T& at (size_type pos) const {
178
176
FAISS_ASSERT_MSG (
179
177
is_owned,
180
178
" This operation cannot be performed on a viewed vector" );
You can’t perform that action at this time.
0 commit comments