復制構造函數，對象，指針

SolutionSet(const SolutionSet &solutionSet) {
this->capacity_ = solutionSet.capacity_;
this->solutionsList_ = solutionSet.solutionsList_;//<--
}


And solutionsList_ is a vector vect*. What is the correct way to copy that vector (I suppose that way I'm not doing it right..)?

最佳答案

vector vect*. What is the correct way to copy that vector [...]?