This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] libstdc++/69939 Qualify get and forward
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 24 Feb 2016 14:03:04 +0000
- Subject: [patch] libstdc++/69939 Qualify get and forward
- Authentication-results: sourceware.org; auth=none
A trivial fix to <experimental/tuple>.
Tested x86_64-linux, committed to trunk and gcc-5-branch.
commit 124d28afe0c515a5d60ba2bbe788c2029329dbc5
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Feb 24 13:15:53 2016 +0000
libstdc++/69939 Qualify get and forward
PR libstdc++/69939
* include/experimental/tuple (__apply_impl): Qualify get and forward.
diff --git a/libstdc++-v3/include/experimental/tuple b/libstdc++-v3/include/experimental/tuple
index e3896e4..81e91bd 100644
--- a/libstdc++-v3/include/experimental/tuple
+++ b/libstdc++-v3/include/experimental/tuple
@@ -58,7 +58,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
using _Wrap = _Maybe_wrap_member_pointer<decay_t<_Fn>>;
return _Wrap::__do_wrap(std::forward<_Fn>(f))(
- get<_Idx>(forward<_Tuple>(t))...);
+ std::get<_Idx>(std::forward<_Tuple>(t))...);
}
template <typename _Fn, typename _Tuple>