Passing move-only function arguments to boost::thread constructor

前端 未结 0 1766
一整个雨季
一整个雨季 2021-01-20 04:28

The following works for std::thread. It prints 10 as output, which is what I desire.

void foo(std::unique_ptr && in) {
  std::         


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