C++11 packaged_task<> with reference arg

Jonathan Wakely jwakely.gcc@gmail.com
Fri Dec 11 16:17:00 GMT 2015


That's how std::thread works. You need to use std::ref to pass by reference.

The most recent explanation I've given is at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68784



More information about the Gcc-help mailing list