28 ms·
Object initialisation complexity is a consequence of the design goals of C++. It's unavoidable complexity, but it's not surprising once you know about it, and i
by Asooka 6y ago
Object initialisation complexity is a consequence of the design goals of C++. It's unavoidable complexity, but it's not surprising once you know about it, and it is required for consistency.
- leni536 6y agoIt's also a consequence of some unfortunate mistakes, like uniform initialization being screwed up by std::initializer_list.
- MaxBarraclough 6y ago> it's not surprising once you know about it I disagree. My first link shows subtle but important differences across versions of C++, and it is surprising. It's a foot-gun at the heart of the language. I agree with the author's comment: This is one of the dusty corners of C++ that can drive you crazy.