aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/thread
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-07-31 22:26:32 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-07-31 22:26:32 -0400
commit4c65085391c06df2a7b1acb4767e63aee6763d2c (patch)
tree0622cddd7ff39f432afe2772f57eb2d805fea001 /libstdc++-v3/include/std/thread
parent9771799c29d553ad28453dd5bf2e72d6be593531 (diff)
downloadgcc-4c65085391c06df2a7b1acb4767e63aee6763d2c.zip
gcc-4c65085391c06df2a7b1acb4767e63aee6763d2c.tar.gz
gcc-4c65085391c06df2a7b1acb4767e63aee6763d2c.tar.bz2
forward_list.h (splice_after): Use forward.
* include/bits/forward_list.h (splice_after): Use forward. (merge): Likewise. * include/bits/stl_iterator.h (move_iterator::operator*): Use move. (move_iterator::operator[]): Use move. * include/bits/stl_list.h (insert): Use move. * include/std/thread (_Callable constructor): Use forward. * include/std/tuple: Don't specify explicit template args to move. From-SVN: r150326
Diffstat (limited to 'libstdc++-v3/include/std/thread')
-rw-r--r--libstdc++-v3/include/std/thread5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread
index bf282cc..83b259d 100644
--- a/libstdc++-v3/include/std/thread
+++ b/libstdc++-v3/include/std/thread
@@ -126,7 +126,10 @@ namespace std
template<typename _Callable>
explicit thread(_Callable __f)
- { _M_start_thread(_M_make_routine<_Callable>(__f)); }
+ {
+ _M_start_thread(_M_make_routine<_Callable>
+ (std::forward<_Callable>(__f)));
+ }
template<typename _Callable, typename... _Args>
thread(_Callable&& __f, _Args&&... __args)