Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86599 - in trunk: boost/thread libs/thread/test/sync/futures/async
From: vicente.botet_at_[hidden]
Date: 2013-11-09 10:26:49


Author: viboes
Date: 2013-11-09 10:26:49 EST (Sat, 09 Nov 2013)
New Revision: 86599
URL: http://svn.boost.org/trac/boost/changeset/86599

Log:
Thread: Added missing include.

Text files modified:
   trunk/boost/thread/executor.hpp | 4 ++++
   trunk/libs/thread/test/sync/futures/async/async_pass.cpp | 7 +++----
   2 files changed, 7 insertions(+), 4 deletions(-)

Modified: trunk/boost/thread/executor.hpp
==============================================================================
--- trunk/boost/thread/executor.hpp Sat Nov 9 07:38:57 2013 (r86598)
+++ trunk/boost/thread/executor.hpp 2013-11-09 10:26:49 EST (Sat, 09 Nov 2013) (r86599)
@@ -118,6 +118,10 @@
       return true;
     }
   };
+
+ /**
+ * Polymorphic adaptor of a model of Executor to an executor.
+ */
   template <typename Executor>
   class executor_adaptor : public executor
   {

Modified: trunk/libs/thread/test/sync/futures/async/async_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/async/async_pass.cpp Sat Nov 9 07:38:57 2013 (r86598)
+++ trunk/libs/thread/test/sync/futures/async/async_pass.cpp 2013-11-09 10:26:49 EST (Sat, 09 Nov 2013) (r86599)
@@ -22,9 +22,9 @@
 // future<typename result_of<F(Args...)>::type>
 // async(launch policy, F&& f, Args&&... args);
 
-// template <class F, class... Args>
+// template <class Executor, class F, class... Args>
 // future<typename result_of<F(Args...)>::type>
-// async(executor& ex, F&& f, Args&&... args);
+// async(Executor& ex, F&& f, Args&&... args);
 
 //#define BOOST_THREAD_VERSION 3
 #define BOOST_THREAD_VERSION 4
@@ -37,9 +37,8 @@
 #include <boost/thread/csbl/memory/unique_ptr.hpp>
 #include <memory>
 #include <boost/detail/lightweight_test.hpp>
-#ifdef BOOST_THREAD_PROVIDES_EXECUTORS
 #include <boost/thread/thread_pool.hpp>
-#endif
+#include <boost/thread/executor.hpp>
 
 typedef boost::chrono::high_resolution_clock Clock;
 typedef boost::chrono::milliseconds ms;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk