Repository: mesos Updated Branches: refs/heads/master edcb374b2 -> f0422cd70
Disallowed copy construction/assignment for the Mesos scheduler library. Review: https://reviews.apache.org/r/37410 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f0422cd7 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f0422cd7 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f0422cd7 Branch: refs/heads/master Commit: f0422cd7028ed7ac4d4326267ec03e4f36839eda Parents: edcb374 Author: Anand Mazumdar <[email protected]> Authored: Sun Aug 16 13:52:38 2015 -0700 Committer: Vinod Kone <[email protected]> Committed: Sun Aug 16 13:52:38 2015 -0700 ---------------------------------------------------------------------- include/mesos/v1/scheduler.hpp | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/f0422cd7/include/mesos/v1/scheduler.hpp ---------------------------------------------------------------------- diff --git a/include/mesos/v1/scheduler.hpp b/include/mesos/v1/scheduler.hpp index c939de3..7911da0 100644 --- a/include/mesos/v1/scheduler.hpp +++ b/include/mesos/v1/scheduler.hpp @@ -58,6 +58,11 @@ public: const std::function<void(void)>& disconnected, const std::function<void(const std::queue<Event>&)>& received); + // Delete copy constructor. + Mesos(const Mesos& other) = delete; + + // Delete assignment operator. + Mesos& operator = (const Mesos& other) = delete; virtual ~Mesos();
