OSDN Git Service

* include/bits/forward_list.h (splice_after): Use forward.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / std / thread
index bf282cc..83b259d 100644 (file)
@@ -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)