Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85728 - in trunk/libs/thread: example test
From: vicente.botet_at_[hidden]
Date: 2013-09-17 15:25:18


Author: viboes
Date: 2013-09-17 15:25:18 EDT (Tue, 17 Sep 2013)
New Revision: 85728
URL: http://svn.boost.org/trac/boost/changeset/85728

Log:
Thread: make use of explicit noncopyable constructor to avoid compile error with Intel compiler.

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

Modified: trunk/libs/thread/example/condition.cpp
==============================================================================
--- trunk/libs/thread/example/condition.cpp Tue Sep 17 13:42:00 2013 (r85727)
+++ trunk/libs/thread/example/condition.cpp 2013-09-17 15:25:18 EDT (Tue, 17 Sep 2013) (r85728)
@@ -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: trunk/libs/thread/test/test_thread.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread.cpp Tue Sep 17 13:42:00 2013 (r85727)
+++ trunk/libs/thread/test/test_thread.cpp 2013-09-17 15:25:18 EDT (Tue, 17 Sep 2013) (r85728)
@@ -129,7 +129,7 @@
 {
     unsigned value;
 
- non_copyable_functor():
+ non_copyable_functor(): boost::noncopyable(),
         value(0)
     {}
 

Modified: trunk/libs/thread/test/test_thread_launching.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_launching.cpp Tue Sep 17 13:42:00 2013 (r85727)
+++ trunk/libs/thread/test/test_thread_launching.cpp 2013-09-17 15:25:18 EDT (Tue, 17 Sep 2013) (r85728)
@@ -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