From 31652ed3a360243be76ebff3572c4670d1a76fe7 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 27 Aug 2017 11:37:52 +1000 Subject: [PATCH] coord/base: add clarifying comment to index assertion --- coord/base.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/coord/base.hpp b/coord/base.hpp index 6e38df40..22bf4601 100644 --- a/coord/base.hpp +++ b/coord/base.hpp @@ -175,7 +175,11 @@ namespace util::coord { KLASS indices (void) const { - static_assert (all (make_vector ((Indices < S)...))); + static_assert ( + all (make_vector ((Indices < S)...)), + "indices must fall within the defined range for the type" + ); + return KLASS { this->data[Indices]... }; } };