
27 Mar
2007
27 Mar
'07
6:40 p.m.
Howard Hinnant wrote:
What if the above use case uses vector<MyClass> where MyClass contains a lot of expensive resources (or other data that needs to be kept around for one reason or another) *plus* a std::thread?
Well... void old_detach() { new_detach(); *this = std::thread(); }