aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-12-22 11:37:07 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2015-12-22 11:37:07 +0000
commit9643ce888b6634d4f6c44ad3c48bd105f38474e8 (patch)
tree6c1d8451229e71d737a45d69b45702b3a94e5452
parentdda5c83188f8a345990dfc6577b348a0240ba440 (diff)
downloadgcc-9643ce888b6634d4f6c44ad3c48bd105f38474e8.zip
gcc-9643ce888b6634d4f6c44ad3c48bd105f38474e8.tar.gz
gcc-9643ce888b6634d4f6c44ad3c48bd105f38474e8.tar.bz2
Add inline to std::__invfwd
PR libstdc++/59768 * include/std/functional (__invfwd): Add inline specifier. From-SVN: r231900
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/std/functional2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 6156979..766e9f1 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional
index b994df4..9b853e8 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 _Tp>
- typename _Unwrap<_Tp>::type
+ inline typename _Unwrap<_Tp>::type
__invfwd(typename remove_reference<_Tp>::type& __t) noexcept
{ return _Unwrap<_Tp>::_S_fwd(__t); }