coord/base: add clarifying comment to index assertion
This commit is contained in:
parent
8f216a0a27
commit
31652ed3a3
@ -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]... };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user