diff options
author | Chris Fairles <cfairles@gcc.gnu.org> | 2009-02-09 00:13:47 +0000 |
---|---|---|
committer | Chris Fairles <cfairles@gcc.gnu.org> | 2009-02-09 00:13:47 +0000 |
commit | b47f0044ab61a5995966a5af9d65da24d4490627 (patch) | |
tree | a3c8c19d13e3f5132ebff7905f0d2eaf8f965e7a /libstdc++-v3/include/std/thread | |
parent | 9a58d4d27c50e04b08d5e5d9f39da489403f0987 (diff) | |
download | gcc-b47f0044ab61a5995966a5af9d65da24d4490627.zip gcc-b47f0044ab61a5995966a5af9d65da24d4490627.tar.gz gcc-b47f0044ab61a5995966a5af9d65da24d4490627.tar.bz2 |
thread (thread<>::thread(_Callable)): Explicitly use _Callable as template argument for _M_make_shared_data.
2009-02-08 Chris Fairles <cfairles@gcc.gnu.org>
* include/std/thread (thread<>::thread(_Callable)): Explicitly use
_Callable as template argument for _M_make_shared_data.
* testsuite/30_threads/thread/cons/6.cc: New.
* testsuite/30_threads/thread/cons/7.cc: New.
* testsuite/30_threads/thread/cons/8.cc: New.
From-SVN: r144023
Diffstat (limited to 'libstdc++-v3/include/std/thread')
-rw-r--r-- | libstdc++-v3/include/std/thread | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread index 9ce5fdd..3704192 100644 --- a/libstdc++-v3/include/std/thread +++ b/libstdc++-v3/include/std/thread @@ -128,7 +128,7 @@ namespace std template<typename _Callable> explicit thread(_Callable __f) - : _M_data(_M_make_shared_data(__f)) + : _M_data(_M_make_shared_data<_Callable>(__f)) { _M_start_thread(); } template<typename _Callable, typename... _Args> |