Why is std::forward useless in this context

后端 未结 0 1854
再見小時候
再見小時候 2021-02-15 05:22

It has come to my attention that std::forward is useless in this context:

void consumeObject(std::unique_ptr&& robj) {
  myvec         


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