struct widget
{
widget()=default; // better than widget(){} ?
inline widget& operator=(const widget&);
};
why is using default
constructor here better? more specifically, how is the compiler-generated constructor more efficient than the one we provide, if we provide exactly the same constructor?
Aucun commentaire:
Enregistrer un commentaire