summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-07 00:17:24 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-07 00:17:24 +0000
commit09ad1038f5c00ff4116378bf02757e0ba7e8f445 (patch)
treecb9c9e9c828351ae826f75e65cc5d955ad343313 /libstdc++-v3/include/std
parent1f1e3e697711f6fbd44d86ee64c2b9aa44896a1d (diff)
downloadgcc-09ad1038f5c00ff4116378bf02757e0ba7e8f445.tar.gz
PR libstdc++/45924
* include/std/functional (_Bind_result::operator()): Do not expand template parameter pack in forward call. * testsuite/20_util/bind/45924.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165072 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r--libstdc++-v3/include/std/functional8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional
index 33fe07284ac..2dae72dcf68 100644
--- a/libstdc++-v3/include/std/functional
+++ b/libstdc++-v3/include/std/functional
@@ -1332,7 +1332,7 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type)
operator()(_Args&&... __args)
{
return this->__call<_Result>(
- tuple<_Args...>(std::forward<_Args...>(__args)...),
+ tuple<_Args...>(std::forward<_Args>(__args)...),
_Bound_indexes());
}
@@ -1342,7 +1342,7 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type)
operator()(_Args&&... __args) const
{
return this->__call<_Result>(
- tuple<_Args...>(std::forward<_Args...>(__args)...),
+ tuple<_Args...>(std::forward<_Args>(__args)...),
_Bound_indexes());
}
@@ -1352,7 +1352,7 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type)
operator()(_Args&&... __args) volatile
{
return this->__call<_Result>(
- tuple<_Args...>(std::forward<_Args...>(__args)...),
+ tuple<_Args...>(std::forward<_Args>(__args)...),
_Bound_indexes());
}
@@ -1362,7 +1362,7 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type)
operator()(_Args&&... __args) const volatile
{
return this->__call<_Result>(
- tuple<_Args...>(std::forward<_Args...>(__args)...),
+ tuple<_Args...>(std::forward<_Args>(__args)...),
_Bound_indexes());
}
};