jeudi 29 août 2019

how to deep copy a vector of unique_ptr

I have a class Container with a data member.

std::vector< std::unique_ptr<Sum_Function> > Functions;

I want to do a deep copy in my copy constructor , how can i do a deep copy of std::unique_ptr.

Aucun commentaire:

Enregistrer un commentaire