Validity and/or lifetime extension of mem-initializer in aggregate initialization

前端 未结 0 1105
半阙折子戏
半阙折子戏 2021-01-01 17:21

CWG 1815 asked (with minor edits):

struct A {};
struct B { A&& a = A{}; };
B b1;         // #1
B b2{A{}};    // #2
B b3{};       // #3


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题