Use perfect forwarding in std::function invokers.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 29 Oct 2014 18:38:31 +0000 (18:38 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 29 Oct 2014 18:38:31 +0000 (18:38 +0000)
commita56561ac2d88ea0bc0bb6551483c118358762842
tree70692bd39fb1147ca91c39c52dea645106e83937
parentc2513a1f6d7817d96cb125125ed0cf96d37f4669
Use perfect forwarding in std::function invokers.

* include/std/functional: (_Function_base::_Function_base()): Use
nullptr instead of literal zero.
(function::operator=(nullptr_t)): Likewise.
(_Function_handler::_M_invoke): Use perfect forwarding for _ArgTypes.
(function::_Invoker_type): Likewise.
* testsuite/20_util/function/invoke/forwarding.cc: New.

From-SVN: r216849
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/function/invoke/forwarding.cc [new file with mode: 0644]