Why can't std::as_const(T &&v) move-return its argument?

前端 未结 0 1997
北荒
北荒 2021-01-14 17:04

Reading Why does as_const forbid rvalue arguments? I understand that we can\'t convert a rvalue-ref into an lvalue-ref, of course.

But why not move the rvalue-ref int

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