Skip to content

Commit

Permalink
Thread: fix non-copyable issues with intel compiler.
Browse files Browse the repository at this point in the history
[SVN r85842]
  • Loading branch information
viboes committed Sep 22, 2013
1 parent 3a7f0b1 commit 8dce737
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/condition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class bounded_buffer : private boost::noncopyable
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);
Expand Down
2 changes: 1 addition & 1 deletion test/test_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct non_copyable_functor:
{
unsigned value;

non_copyable_functor():
non_copyable_functor(): boost::noncopyable(),
value(0)
{}

Expand Down
1 change: 1 addition & 0 deletions test/test_thread_launching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void test_thread_callable_object_no_arguments()
struct callable_noncopyable_no_args:
boost::noncopyable
{
callable_noncopyable_no_args() : boost::noncopyable() {}
static bool called;

void operator()() const
Expand Down

0 comments on commit 8dce737

Please sign in to comment.