common: try fixing build error on Linux

This commit is contained in:
Eric Wasylishen 2017-04-23 20:48:56 -06:00
parent e5ec45cbe2
commit 7014757cb9
1 changed files with 4 additions and 4 deletions

View File

@ -104,13 +104,13 @@ public:
return true;
}
T operator[](const size_t idx) const {
assert(idx < N);
T operator[](const int idx) const {
assert(idx >= 0 && idx < N);
return v[idx];
}
T &operator[](const size_t idx) {
assert(idx < N);
T &operator[](const int idx) {
assert(idx >= 0 && idx < N);
return v[idx];
}