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:18 UTC

[04/16] mesos git commit: Used `delete` for `Slave` copy constructor and assignment operator.

Used `delete` for `Slave` copy constructor and assignment operator.

Review: https://reviews.apache.org/r/59659


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b90ba2b7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b90ba2b7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b90ba2b7

Branch: refs/heads/master
Commit: b90ba2b7aeffeffef0d590c813a924b94762207d
Parents: c565152
Author: Jie Yu <yu...@gmail.com>
Authored: Tue May 30 14:26:07 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed May 31 14:51:10 2017 -0700

----------------------------------------------------------------------
 src/slave/slave.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b90ba2b7/src/slave/slave.hpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.hpp b/src/slave/slave.hpp
index 8e9e36c..2a62eff 100644
--- a/src/slave/slave.hpp
+++ b/src/slave/slave.hpp
@@ -504,8 +504,8 @@ private:
       const FrameworkID& frameworkId,
       const ExecutorID& executorId);
 
-  Slave(const Slave&);              // No copying.
-  Slave& operator=(const Slave&); // No assigning.
+  Slave(const Slave&) = delete;
+  Slave& operator=(const Slave&) = delete;
 
   // Gauge methods.
   double _frameworks_active()