PR libstdc++/84532 prevent unwrapping of reference_wrapper arguments
commit241b2ec07ff9e174c60239706799a1b42818e8c8
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Feb 2018 23:23:43 +0000 (23 23:23 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Feb 2018 23:23:43 +0000 (23 23:23 +0000)
tree7271bee4a1eb11e0b500e4c1bd45cdb26334f103
parente65055a558093bd4fc0b1b0024b7814cc187b8e8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257956 138bc75d-0d04-0410-961f-82ee72b054a4
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]