3 ms·
IIRC, auto C++ objects aren't uninitialized, they're default-initialized, but said default-initialization may leave them with uninitialized fields. I would hope
by eridius 8y ago
IIRC, auto C++ objects aren't uninitialized, they're default-initialized, but said default-initialization may leave them with uninitialized fields. I would hope that this new automatic variable initialization would also apply to those fields of default-initialized auto C++ objects.
- kazinator 8y agoBuilt-in types like int are also "object"; only C++ class objects can have constructors that initialize them.