This question already has an answer here:
A virtual destructor which does nothing is
virtual ~ClassName() {}
Since C++11 we can alternatively say:
virtual ~ClassName() = default;
Is there any difference between these two?
Aucun commentaire:
Enregistrer un commentaire