$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r86542 - trunk/boost/thread
From: vicente.botet_at_[hidden]
Date: 2013-11-02 05:54:13
Author: viboes
Date: 2013-11-02 05:54:13 EDT (Sat, 02 Nov 2013)
New Revision: 86542
URL: http://svn.boost.org/trac/boost/changeset/86542
Log:
Thread: try to avoid compile error with msvc.12.
Text files modified: 
   trunk/boost/thread/thread_pool.hpp |     7 ++++++-                                 
   1 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/boost/thread/thread_pool.hpp
==============================================================================
--- trunk/boost/thread/thread_pool.hpp	Fri Nov  1 17:19:46 2013	(r86541)
+++ trunk/boost/thread/thread_pool.hpp	2013-11-02 05:54:13 EDT (Sat, 02 Nov 2013)	(r86542)
@@ -70,7 +70,7 @@
         }
         return false;
       }
-      catch (std::exception& ex)
+      catch (std::exception& )
       {
         return false;
       }
@@ -122,7 +122,12 @@
         threads.reserve(thread_count);
         for (unsigned i = 0; i < thread_count; ++i)
         {
+#if 1
+          thread th (&thread_pool::worker_thread, this);
+          threads.push_back(thread_t(boost::move(th)));
+#else
           threads.push_back(thread_t(&thread_pool::worker_thread, this));
+#endif
         }
       }
       catch (...)