PR libstdc++/79486 use lvalues in result_of expressions
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 Feb 2017 13:13:29 +0000 (13:13 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 13 Feb 2017 13:13:29 +0000 (13:13 +0000)
commitdef227f1ad99a7d366cda7ed72e748ebfb3bf797
treed409d0b6aac71415d12526b33548cacfc644c503
parent765fc0f73ff5aba6565f3f73658ad518911ea53e
PR libstdc++/79486 use lvalues in result_of expressions

PR libstdc++/79486
* include/std/future (__future_base::_Task_state::_M_run)
(__future_base::_Task_state::_M_run_delayed): Use lvalue types in
result_of expressions.
* testsuite/30_threads/packaged_task/79486.cc: New.

From-SVN: r245386
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/future
libstdc++-v3/testsuite/30_threads/packaged_task/79486.cc [new file with mode: 0644]