lundi 3 juillet 2017

Is there any difference between virtual destructor=default and one with empty body? [duplicate]

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