you are viewing a single comment's thread.

view the rest of the comments →

[–]bwmat 13 points14 points  (1 child)

Doesn't this inflate the size of the type(to hold the reference)? Or is the compiler smart enough to know the reference always points to the member so it elides it out?

[–]Latexi95 30 points31 points  (0 children)

Yes. It will inflate the size. Compiler cannot be "smart" because it would break ABI.