7 ms·
Destructors will execute in the reverse of declaration order, so if initialization order doesnt match declaration order, and some members depend on each other s
by wheybags 3y ago
Destructors will execute in the reverse of declaration order, so if initialization order doesnt match declaration order, and some members depend on each other somehow, things will break. At the very least, it could be surprising. Not a problem in C where destructors don't exist.