It seems the current standard cannot interpret why two structured binding declaration conflict with each other

后端 未结 0 799
别那么骄傲
别那么骄傲 2021-01-15 10:07
struct A{
    int a;
};
struct B{
    int b;
};
auto&& [x] = A{};  //#1
auto&& [x] = B{};  //#2
int main(){
}         


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