Commit 647430ef authored by Leonardo Silvestri's avatar Leonardo Silvestri

fix tests/array_bool

parent 82db5140
Pipeline #7235411 passed with stage
in 45 minutes 19 seconds
......@@ -456,7 +456,7 @@ namespace arr {
}
// address the Array as if it were a column vector
inline typename vector<T>::reference operator[](idx_type i) {
inline T& operator[](idx_type i) {
if (dim[0] == 0) {
throw range_error("subscript out of bounds");
}
......@@ -469,7 +469,7 @@ namespace arr {
}
// address the Array as if it were a column vector
inline typename vector<T>::const_reference operator[](idx_type i) const {
inline const T& operator[](idx_type i) const {
if (size() == 0) {
throw range_error("subscript out of bounds");
}
......
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 to comment