Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85842 - in branches/release/libs/thread: example test
From: vicente.botet_at_[hidden]
Date: 2013-09-22 19:33:52


Author: viboes
Date: 2013-09-22 19:33:52 EDT (Sun, 22 Sep 2013)
New Revision: 85842
URL: http://svn.boost.org/trac/boost/changeset/85842

Log:
Thread: fix non-copyable issues with intel compiler.

Text files modified:
   branches/release/libs/thread/example/condition.cpp | 2 +-
   branches/release/libs/thread/test/test_thread.cpp | 2 +-
   branches/release/libs/thread/test/test_thread_launching.cpp | 1 +
   3 files changed, 3 insertions(+), 2 deletions(-)

Modified: branches/release/libs/thread/example/condition.cpp
==============================================================================
--- branches/release/libs/thread/example/condition.cpp Sun Sep 22 18:23:58 2013 (r85841)
+++ branches/release/libs/thread/example/condition.cpp 2013-09-22 19:33:52 EDT (Sun, 22 Sep 2013) (r85842)
@@ -16,7 +16,7 @@
 public:
     typedef boost::unique_lock<boost::mutex> lock;
 
- bounded_buffer(int n) : begin(0), end(0), buffered(0), circular_buf(n) { }
+ bounded_buffer(int n) : boost::noncopyable(), begin(0), end(0), buffered(0), circular_buf(n) { }
 
     void send (int m) {
         lock lk(monitor);

Modified: branches/release/libs/thread/test/test_thread.cpp
==============================================================================
--- branches/release/libs/thread/test/test_thread.cpp Sun Sep 22 18:23:58 2013 (r85841)
+++ branches/release/libs/thread/test/test_thread.cpp 2013-09-22 19:33:52 EDT (Sun, 22 Sep 2013) (r85842)
@@ -129,7 +129,7 @@
 {
     unsigned value;
 
- non_copyable_functor():
+ non_copyable_functor(): boost::noncopyable(),
         value(0)
     {}
 

Modified: branches/release/libs/thread/test/test_thread_launching.cpp
==============================================================================
--- branches/release/libs/thread/test/test_thread_launching.cpp Sun Sep 22 18:23:58 2013 (r85841)
+++ branches/release/libs/thread/test/test_thread_launching.cpp 2013-09-22 19:33:52 EDT (Sun, 22 Sep 2013) (r85842)
@@ -63,6 +63,7 @@
 struct callable_noncopyable_no_args:
     boost::noncopyable
 {
+ callable_noncopyable_no_args() : boost::noncopyable() {}
     static bool called;
 
     void operator()() const


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