Use __invoke in std::function internals
authorJonathan Wakely <jwakely@redhat.com>
Fri, 5 Aug 2016 09:00:34 +0000 (10:00 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 5 Aug 2016 09:00:34 +0000 (10:00 +0100)
commit98e6e662332b75149288e6f1e1171e0b131a8981
treee80aba6d88bc64cc6ae74dbed81b236ba8fc54d8
parentdb7c335e162876b4c5e3e9e0b5e48ea5febda798
Use __invoke in std::function internals

* include/std/functional (__callable_functor): Remove.
(_Function_handler::_M_invoke): Use __invoke instead of
__callable_functor or mem_fn.
(function::_Callable): Use lvalue in result_of expression.
(function): Remove TODO comments about allocators.
* testsuite/20_util/function/cons/refqual.cc: New test.

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