The following works for std::thread. It prints 10 as output, which is what I desire.
std::thread
void foo(std::unique_ptr && in) { std::