Re:The C++20 Naughty and Nice List for Game Devs
by wheybags on Monday December 25, 2023 @08:27AM
(#38762404)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.