What is the effect of default initialization for a union instance?
Following cpp reference, I would understand that the behaviour until C++11 is to leave it uninitialized (if the union is a POD type, which is likely), while it would call a default constructor anyway starting with C++14.
Aucun commentaire:
Enregistrer un commentaire