I'm having a problem with some multidimensional vectors. The code looks something like this:
vector< vector<int> > m_FooArray;
for( int i = 0; i++; i < MAX1 )
m_FooArray[i].assign( MAX2, 0 ); // This works
m_FooArray = 4; // This compiles fine, but bombs on execution
m_FooArray is a member of a base class and used in the constructor of the derived classes, in case that matters. Bacically I want to know what's wrong with the line that bombs and if there's an equivalent notation that I can use. I have a large amount of data that needs to be hard coded, so the simpler the notation the better. (Reading from files is undesirable in this case, though I may end up doing it anyway.)
Thanks in advance.