This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] libstdc++/69939 Qualify get and forward


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]