阅读背景:

防止非常量左值解析为右值引用而不是const左值引用

来源:互联网 

I'm having trouble overloading a function to take a value either by const reference or, if it is an rvalue, an rvalue reference. The problem is that my non-const lvalues are binding to the rvalue version of the function. I'm doing this in VC2010.I'm having trouble overloading a function to ta




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: