From 1d4e01ad5eabd57835fd8e3d0dddbbaab7046290 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 18 May 2015 01:56:25 +0100 Subject: [PATCH] array empty fix --- octa/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octa/array.h b/octa/array.h index a3f162c..d32b39a 100644 --- a/octa/array.h +++ b/octa/array.h @@ -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; }