decltype on the variable of reference type with curly braces

后端 未结 0 1642
暖寄归人
暖寄归人 2020-12-15 00:26

Consider the following code:

#include 

int main() {
    const int& p = 42;
    auto v1 = decltype(p){};
    static_assert(std::is_same         


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