class OtherClass{
int max_index = 1000;
int index = 0;
Genre **genres = new Genre*[max_index];
public:
~OtherClass() { delete[] genres; }
void memMove();
};
void OtherClass::memMove() {
Genre **new_g = new Genre*[this->max_index *= 2];
for(int i = 0; i < this->index; i++)
new_g[i] = this->genres[i];
delete[] genres;
this->genres = new_g;
}