[cfe-commits] [libcxx] r115930 - /libcxx/trunk/include/functional

Howard Hinnant hhinnant at apple.com
Thu Oct 7 11:03:23 PDT 2010


Author: hhinnant
Date: Thu Oct  7 13:03:23 2010
New Revision: 115930

URL: http://llvm.org/viewvc/llvm-project?rev=115930&view=rev
Log:
Corrected an inconsistency with recent changes in tuple, and perfect forwarding within bind

Modified:
    libcxx/trunk/include/functional

Modified: libcxx/trunk/include/functional
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/functional?rev=115930&r1=115929&r2=115930&view=diff
==============================================================================
--- libcxx/trunk/include/functional (original)
+++ libcxx/trunk/include/functional Thu Oct  7 13:03:23 2010
@@ -1683,7 +1683,7 @@
         {
             // compiler bug workaround
             return __apply_functor(__f_, __bound_args_, __indices(),
-                                  tuple<_Args&&...>(__args...));
+                                  tuple<_Args&&...>(_STD::forward<_Args>(__args)...));
         }
 
     template <class ..._Args>
@@ -1692,7 +1692,7 @@
         operator()(_Args&& ...__args) const
         {
             return __apply_functor(__f_, __bound_args_, __indices(),
-                                   tuple<_Args&&...>(__args...));
+                                   tuple<_Args&&...>(_STD::forward<_Args>(__args)...));
         }
 };
 





More information about the cfe-commits mailing list