[patch] libstdc++/59768 Fix std::invoke support for reference_wrappers

Jonathan Wakely jwakely@redhat.com
Tue Dec 22 11:38:00 GMT 2015


On 11/12/15 21:43 +0000, Jonathan Wakely wrote:
>    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.

This change was missing an inline specifier on the new __invfwd
function template.

Tested ppc64le-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 851 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20151222/2822b9c5/attachment.bin>


More information about the Libstdc++ mailing list