Can't I convert std::reference to std::reference on Clang

后端 未结 0 2002
孤城傲影
孤城傲影 2021-02-01 20:06

I would expect that std::reference_wrapper would work as a reference in terms of converting non-const into const, like:

int a = 10;
int& refA = a;
const int&a         


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