top_objects is a pointer to a vector of a vector *top_objects is a vector of a vector (*top_objects)[0] is a vector (*top_objects)[0][0] is a single element in that vector
I understand both solutions, but now I'm facing another problem: I am passing by reference that bidimensional vector to the constructor of myClass. I want to keep that reference because I need to make modifications to the bidi-vector during the execution of the program
I tried assigning it to another variable, but it creates a copy instead of modifying the original one. How can I do it?