You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2017/05/31 21:51:24 UTC
[10/16] mesos git commit: Used `delete` for deleting copy constructor
and assignment operator.
Used `delete` for deleting copy constructor and assignment operator.
This is for `Executor` and `Framework` class in slave.hpp.
Review: https://reviews.apache.org/r/59664
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ca52dec7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ca52dec7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ca52dec7
Branch: refs/heads/master
Commit: ca52dec7da0d6327661326e90004c6f2e991ed5c
Parents: fc1fd07
Author: Jie Yu <yu...@gmail.com>
Authored: Tue May 30 15:40:55 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed May 31 14:51:10 2017 -0700
----------------------------------------------------------------------
src/slave/slave.hpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/ca52dec7/src/slave/slave.hpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.hpp b/src/slave/slave.hpp
index 4d29bef..c223e6a 100644
--- a/src/slave/slave.hpp
+++ b/src/slave/slave.hpp
@@ -835,8 +835,8 @@ public:
Option<mesos::slave::ContainerTermination> pendingTermination;
private:
- Executor(const Executor&); // No copying.
- Executor& operator=(const Executor&); // No assigning.
+ Executor(const Executor&) = delete;
+ Executor& operator=(const Executor&) = delete;
bool commandExecutor;
};
@@ -929,8 +929,8 @@ public:
}
private:
- Framework(const Framework&); // No copying.
- Framework& operator=(const Framework&); // No assigning.
+ Framework(const Framework&) = delete;
+ Framework& operator=(const Framework&) = delete;
};