This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/59768] [DR 2219] std::thread constructor not handling reference_wrapper correctly
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Dec 2015 21:46:23 +0000
- Subject: [Bug libstdc++/59768] [DR 2219] std::thread constructor not handling reference_wrapper correctly
- Auto-submitted: auto-generated
- References: <bug-59768-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59768
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Dec 11 21:45:51 2015
New Revision: 231574
URL: https://gcc.gnu.org/viewcvs?rev=231574&root=gcc&view=rev
Log:
Fix std::invoke support for reference_wrappers
PR libstdc++/59768
* include/std/functional (_Unwrap, __invfwd): Define.
(__invoke_impl): Remove reference_wrapper overloads and use __invfwd.
* include/std/type_traits (__result_of_memobj, __result_of_memfun):
Add partial specializations for const reference_wrappers and simplify.
* testsuite/20_util/bind/ref_neg.cc: Use dg-excess-errors.
* testsuite/20_util/function_objects/invoke/59768.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/function_objects/invoke/
trunk/libstdc++-v3/testsuite/20_util/function_objects/invoke/59768.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/functional
trunk/libstdc++-v3/include/std/type_traits
trunk/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc