Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah, you're right, thanks for correcting me! This also doesn't apply to heap-allocated variables, though I think p2795r2 should cover all these cases.

I wonder if (for stack variables) this is due to an implementation detail in the compiler. After all, non-trivial classes have 'actual' constructors that run and that is supposed to initialize their respective class instances...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: