Is a literal, say “Hello world”,a rvalue when I passing it to a template which its paramater is an universal reference?

后端 未结 0 910
春和景丽
春和景丽 2021-02-06 16:45

My code is as follow:

template  
void func(T&& param){
    using boost::typeindex::type_id_with_cvr;
    cout << "T = "          


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