If I have the following class member:
std::vector<floatsingleVector;
I can initialize it to have 50 elements with values of 0.5:
singleVector = std::vector<float>( 50, 0.5 );
My question concerns when I move to using this class member:
std::vector<std::vector<float>nestedVector;
and attempt to initialize:
nestedVector = std::vector<std::vector<float>>( 50,
std::vector<float>( 10, 0.5 ) );
which I would expect would initialize the vector to have 50 nested
vectors, each having 10 elements with values of 0.5.
This does not, however, compile.
Anjo