From 295ce2e534ccbf48e96d920ee23460e52bd67ccd Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 5 Jan 2017 17:35:49 +0000 Subject: [PATCH] Remove unnecessary typedef from std::function * include/bits/std_function.h (function::_Signature_type): Remove. (function::function(_Functor)): Adjust. From-SVN: r244107 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/std_function.h | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e51ab170750..7b2199d52c7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-01-05 Jonathan Wakely + + * include/bits/std_function.h (function::_Signature_type): Remove. + (function::function(_Functor)): Adjust. + 2017-01-05 Tim Shen PR libstdc++/78996 diff --git a/libstdc++-v3/include/bits/std_function.h b/libstdc++-v3/include/bits/std_function.h index 7b10c42e0b2..f7bb22a313e 100644 --- a/libstdc++-v3/include/bits/std_function.h +++ b/libstdc++-v3/include/bits/std_function.h @@ -456,8 +456,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, private _Function_base { - typedef _Res _Signature_type(_ArgTypes...); - template::type> struct _Callable : __check_func_return_type<_Res2, _Res> { }; @@ -715,7 +713,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION function(_Functor __f) : _Function_base() { - typedef _Function_handler<_Signature_type, _Functor> _My_handler; + typedef _Function_handler<_Res(_ArgTypes...), _Functor> _My_handler; if (_My_handler::_M_not_empty_function(__f)) {