We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
r_vector
1 parent df18ba2 commit 21eff5cCopy full SHA for 21eff5c
inst/include/cpp11/list_of.hpp
@@ -13,10 +13,10 @@ class list_of : public list {
13
list_of(const list& data) : list(data) {}
14
15
#ifdef LONG_VECTOR_SUPPORT
16
- T operator[](int pos) const { return operator[](static_cast<R_xlen_t>(pos)); }
+ T operator[](const int pos) const { return operator[](static_cast<R_xlen_t>(pos)); }
17
#endif
18
19
- T operator[](R_xlen_t pos) const { return list::operator[](pos); }
+ T operator[](const R_xlen_t pos) const { return list::operator[](pos); }
20
21
T operator[](const char* pos) const { return list::operator[](pos); }
22
0 commit comments