Add inline to std::__invfwd

PR libstdc++/59768
	* include/std/functional (__invfwd): Add inline specifier.

From-SVN: r231900
This commit is contained in:
Jonathan Wakely 2015-12-22 11:37:07 +00:00 committed by Jonathan Wakely
parent dda5c83188
commit 9643ce888b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-12-22 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/59768
* include/std/functional (__invfwd): Add inline specifier.
2015-12-21 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/68982

View File

@ -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 _Tp>
typename _Unwrap<_Tp>::type
inline typename _Unwrap<_Tp>::type
__invfwd(typename remove_reference<_Tp>::type& __t) noexcept
{ return _Unwrap<_Tp>::_S_fwd(__t); }