Commit 82cd0d20 by Max Lyon

fix more warnings

parent f3463e5c
Pipeline #3507 passed with stage
in 3 minutes 40 seconds
......@@ -468,14 +468,14 @@ public:
}
/// Access the i'th element. No range check is performed!
reference operator[](int _idx) {
assert(size_t(_idx) < data_.size());
reference operator[](size_t _idx) {
assert(_idx < data_.size());
return ((value_type*) &data_[0])[_idx];
}
/// Const access the i'th element. No range check is performed!
const_reference operator[](int _idx) const {
assert(size_t(_idx) < data_.size());
const_reference operator[](size_t _idx) const {
assert(_idx < data_.size());
return ((value_type*) &data_[0])[_idx];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment