Is it a missed optimization, when a compile-time known reference takes space in a non-aggregate struct?

后端 未结 1 620
北荒
北荒 2021-01-18 19:11

Note: this is a follow-up question to: Is it a missed optimization, when a compile-time known reference takes space in a struct?, which showed that aggregate initialization

相关标签:
1条回答
  • 2021-01-18 19:58

    In the following example y.b refers to x.a.

    int main ()
    {
        Foo     x;
        Foo     y(x);
    
        return 0;
    }
    
    0 讨论(0)
提交回复
热议问题