matrix: make rows/cols constexpr
This commit is contained in:
parent
43b59c6801
commit
cee2b7b516
@ -27,8 +27,8 @@ namespace util {
|
|||||||
struct matrix {
|
struct matrix {
|
||||||
T values[S][S];
|
T values[S][S];
|
||||||
|
|
||||||
static const size_t rows = S;
|
static constexpr size_t rows = S;
|
||||||
static const size_t cols = S;
|
static constexpr size_t cols = S;
|
||||||
|
|
||||||
// index operators return a pointer into the data array so that
|
// index operators return a pointer into the data array so that
|
||||||
// multidimensional array syntax can be used transparently on this
|
// multidimensional array syntax can be used transparently on this
|
||||||
|
Loading…
Reference in New Issue
Block a user