For everything you want to move or avoid copies, prefer to move the constructors and std::move.
But why doesn't this happen automatically for me?
++ . , std::move(). , , , . .
, a , std::move(a) ( std::thread). , , , std:: thread , , std:: thread ( ). , ( / , , : , ).
, std::move . V++ ( CTP ), , MSVC ( ) Copy.
user1357649