array empty fix

master
Daniel Kolesa 2015-05-18 01:56:25 +01:00
parent f4ef47e75a
commit 1d4e01ad5e
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ namespace octa {
size_t length() const noexcept { return N; }
bool empty() const noexcept { return (N > 0); }
bool empty() const noexcept { return N == 0; }
bool in_range(size_t idx) noexcept { return idx < N; }
bool in_range(int idx) noexcept { return idx >= 0 && idx < N; }