coord/base: add clarifying comment to index assertion

This commit is contained in:
Danny Robson 2017-08-27 11:37:52 +10:00
parent 8f216a0a27
commit 31652ed3a3

View File

@ -175,7 +175,11 @@ namespace util::coord {
KLASS<sizeof...(Indices),T> KLASS<sizeof...(Indices),T>
indices (void) const 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<sizeof...(Indices),T> { this->data[Indices]... }; return KLASS<sizeof...(Indices),T> { this->data[Indices]... };
} }
}; };