Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-03-27 14:40:05


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();
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk