Short question: Is there a shorter way to do this
array,n>,m> matrix;
I was hoping for something like
A palatable workaround for compilers that don't support template aliases yet is to use a simple metafunction to generate the type:
#include
#include
template
struct Matrix
{
typedef std::array, RowsN> type; // row major
private:
Matrix(); // prevent accidental construction of the metafunction itself
};
int main()
{
Matrix::type matrix;
}