OK, I know that in C++ a - let's say 2-dimensional - array can be initialized this way :
int theArray[5][3] = {
{1,2,3},
{4,5,6},
{7,8,9},
{10,11,12},
{13,14,15}
};
Now, what if I want to use pre-existing arrays as theArray's elements?
E.g.
// A, B, C, D,... have already been declared as :
// `const U64 A[] = { 1,2,3,4 };` etc...
const U64 multiDimArray[12][64] = {
A, B, C, D, E, F,
G, H, I, J, K, L
};
This one, throws an error though :
cannot initialize an array element of type 'const U64'
(aka 'const unsigned long long') with an lvalue of type 'const U64 [64]'
I see the point, but hopefully you can see mine.
Is there a workaround so that I can easily achieve the same thing? (Any suggestion - perhaps something using Boost? - is welcome)