[patch] Use std::decay in return type of std::async (LWGW 2021)

Jonathan Wakely jwakely@redhat.com
Fri May 29 14:11:00 GMT 2015


http://cplusplus.github.io/LWG/lwg-defects.html#2021 corrects the
return type of std::async(), which is necessary to ensure that the
result_of expression matches the actual result of the callable object
passed to async.

We already do the right thing for std::bind(), so only std::async()
needs changes.

Tested powerpc64le-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 6488 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150529/ffe2d7ee/attachment.bin>


More information about the Gcc-patches mailing list