From df3be8f9acb97fcb935ca29690626769fa0a6b9c Mon Sep 17 00:00:00 2001 From: redi Date: Tue, 22 Dec 2015 11:37:07 +0000 Subject: [PATCH] Add inline to std::__invfwd PR libstdc++/59768 * include/std/functional (__invfwd): Add inline specifier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231900 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/std/functional | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6156979853a..766e9f16080 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2015-12-22 Jonathan Wakely + + PR libstdc++/59768 + * include/std/functional (__invfwd): Add inline specifier. + 2015-12-21 Jonathan Wakely PR libstdc++/68982 diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional index b994df48dc1..9b853e83a7b 100644 --- a/libstdc++-v3/include/std/functional +++ b/libstdc++-v3/include/std/functional @@ -207,7 +207,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Used by __invoke_impl instead of std::forward<_Tp> so that a // reference_wrapper is converted to an lvalue-reference. template - typename _Unwrap<_Tp>::type + inline typename _Unwrap<_Tp>::type __invfwd(typename remove_reference<_Tp>::type& __t) noexcept { return _Unwrap<_Tp>::_S_fwd(__t); } -- 2.11.4.GIT