From 9643ce888b6634d4f6c44ad3c48bd105f38474e8 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely 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. From-SVN: r231900 --- 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.30.2