A
AalaarDB
Basically, how do I do this? If there is no legal way to do what I
want, why not? It seems very logical.
I want the array as a typedef for elegance and so I can do
treasury.front()[0] or treasury[0][0]
typedef int taxTable[8];//the type taxTable should be 8 ints
int size = sizeof(taxTable);//32, shows the array is working ok
taxTable taxes;
std::vector<taxTable> treasury;
treasury.push_back(taxes);
//error C2440: 'initializing' : cannot convert
//from 'const int [8]' to 'taxTable '
treasury.resize(1);
//error C2440: '<function-style-cast>' :
//cannot convert from 'int' to 'taxTable '
want, why not? It seems very logical.
I want the array as a typedef for elegance and so I can do
treasury.front()[0] or treasury[0][0]
typedef int taxTable[8];//the type taxTable should be 8 ints
int size = sizeof(taxTable);//32, shows the array is working ok
taxTable taxes;
std::vector<taxTable> treasury;
treasury.push_back(taxes);
//error C2440: 'initializing' : cannot convert
//from 'const int [8]' to 'taxTable '
treasury.resize(1);
//error C2440: '<function-style-cast>' :
//cannot convert from 'int' to 'taxTable '