summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-03-23 09:34:53 +0100
committerChristian Kamm <christian.d.kamm@nokia.com>2010-03-26 13:05:03 +0100
commit38ba7e1705dca0894f79b9a0de1327ee3cd4c0bf (patch)
tree2aab235d07e3d91dc52161f7818f5950a9ed31af
parentf4dde2601b3fc5c495b563c61c57d949eed17afb (diff)
Make Coroutine non-copyable.
While it's possible to make a copy of a coroutine, it should have more explicit syntax.
-rw-r--r--src/coroutine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coroutine.h b/src/coroutine.h
index a054308..3e8269e 100644
--- a/src/coroutine.h
+++ b/src/coroutine.h
@@ -30,6 +30,10 @@ public:
protected:
virtual void run() {}
+private: // not copyable
+ Coroutine(const Coroutine &);
+ Coroutine &operator=(const Coroutine &);
+
private:
// for the original coroutine
Coroutine(bool);