PR libstdc++/84532 prevent unwrapping of reference_wrapper arguments
authorJonathan Wakely <jwakely@redhat.com>
Fri, 23 Feb 2018 23:23:43 +0000 (23:23 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 23 Feb 2018 23:23:43 +0000 (23:23 +0000)
commitcc535146720889c8e32712b0351204ee182d4843
tree7271bee4a1eb11e0b500e4c1bd45cdb26334f103
parent8af2826bb0cd48d90dc04fc044a9ddbf978a5281
PR libstdc++/84532 prevent unwrapping of reference_wrapper arguments

PR libstdc++/84532
* include/std/thread (thread::__make_invoker): Construct tuple
directly instead of using make_tuple.
* testsuite/30_threads/async/84532.cc: New.
* testsuite/30_threads/thread/84532.cc: New.

From-SVN: r257956
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread
libstdc++-v3/testsuite/30_threads/async/84532.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/thread/84532.cc [new file with mode: 0644]