Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-10-07 22:03:23 +0400
committerHoward Hinnant <hhinnant@apple.com>2010-10-07 22:03:23 +0400
commit0f444b3b1650031f293985bb4da98cd60b03acfa (patch)
tree3828964904e613a2a240d212d20745340031bc22 /libcxx/include/functional
parent49715fd494e80b19038fc35ad1d41077db31510c (diff)
Corrected an inconsistency with recent changes in tuple, and perfect forwarding within bind
llvm-svn: 115930
Diffstat (limited to 'libcxx/include/functional')
-rw-r--r--libcxx/include/functional4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/functional b/libcxx/include/functional
index 3205ee36f495..8e508f9d90d8 100644
--- a/libcxx/include/functional
+++ b/libcxx/include/functional
@@ -1683,7 +1683,7 @@ public:
{
// 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 @@ public:
operator()(_Args&& ...__args) const
{
return __apply_functor(__f_, __bound_args_, __indices(),
- tuple<_Args&&...>(__args...));
+ tuple<_Args&&...>(_STD::forward<_Args>(__args)...));
}
};