File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ class list_of : public list {
13
13
list_of (const list& data) : list(data) {}
14
14
15
15
#ifdef LONG_VECTOR_SUPPORT
16
- T operator [](int pos) { return operator [](static_cast <R_xlen_t>(pos)); }
16
+ T operator [](int pos) const { return operator [](static_cast <R_xlen_t>(pos)); }
17
17
#endif
18
18
19
- T operator [](R_xlen_t pos) { return list::operator [](pos); }
19
+ T operator [](R_xlen_t pos) const { return list::operator [](pos); }
20
20
21
- T operator [](const char * pos) { return list::operator [](pos); }
21
+ T operator [](const char * pos) const { return list::operator [](pos); }
22
22
23
- T operator [](const std::string& pos) { return list::operator [](pos.c_str ()); }
23
+ T operator [](const std::string& pos) const { return list::operator [](pos.c_str ()); }
24
24
};
25
25
26
26
namespace writable {
You can’t perform that action at this time.
0 commit comments