12 ms·
Auto declarations don’t mean uninitialised, they get default initialisation, which for many types means “undefined”.
by olliej 8y ago
Auto declarations don’t mean uninitialised, they get default initialisation, which for many types means “undefined”.
- loeg 8y agoI should have been more clear. What's the benefit of leaving automatic storage C++ object memory uninitialized?
- saagarjha 8y agoIt's fast?
- loeg 8y agoThe proposal would already accepti a performance tradeoff to initialize memory of uninitialized "trivial" variables. I'm not sure why you would want to draw a line in the sand at trivial variables only. What makes non-trivial uninitialized object memory higher penalty or lower risk?