I am trying to figure out how to initialize a const class member variable, (in this case a vector), to some arbitrary values in the class's constructor.
Basically, in the class definition, I have:
const vector < pair <float, float> > myVector;
In the class's constructor however, I would like to get the size of myVector
to something arbitrary, and also populate it with arbitrary values. However, my compiler is saying that since it is a const, it cannot be changed, which makes sense, but I am unsure of how to then accomplish what I am trying to do here.