Skip to content

Commit

Permalink
Thread.h: disable copy constr and assignment op
Browse files Browse the repository at this point in the history
Disable copy constructor and assignment operator.
They are currently not defined, so any attempt to use them will
result in linker error.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
  • Loading branch information
stiopaa1 committed Sep 5, 2015
1 parent ed4cf3d commit 7080e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/Thread.h
Expand Up @@ -29,8 +29,8 @@ class Thread {
void *entry_wrapper();

public:
explicit Thread(const Thread& other);
const Thread& operator=(const Thread& other);
Thread(const Thread&) = delete;
Thread& operator=(const Thread&) = delete;

Thread();
virtual ~Thread();
Expand Down

0 comments on commit 7080e0f

Please sign in to comment.