Re: C++11 packaged_task<> with reference arg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux