It is available. There is some bug or standard problem std::packaged_task<void()> , so we have to make std::packaged_task<int()> that returns some fake number, the solution from 

http://stackoverflow.com/questions/14744588/why-is-stdpackaged-taskvoid-not-valid