Does std::future wait on destruction

Viewed 2670

Question Does std::future call wait() or get() on destruction?

Example

void fun()
{
     std::future<int> fut = my_thread_pool.submit(some_work);
}//is fut.wait() or fut.get() called? here
1 Answers
Related