Browse Source

cmCommand: make noncopyable

Daniel Pfeifer 8 years ago
parent
commit
45b49099d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/cmCommand.h

+ 4 - 0
Source/cmCommand.h

@@ -107,6 +107,10 @@ public:
   /** Check if the command is disallowed by a policy.  */
   /** Check if the command is disallowed by a policy.  */
   bool Disallowed(cmPolicies::PolicyID pol, const char* e);
   bool Disallowed(cmPolicies::PolicyID pol, const char* e);
 
 
+private:
+  cmCommand(cmCommand const&);            // = delete;
+  cmCommand& operator=(cmCommand const&); // = delete;
+
 protected:
 protected:
   cmMakefile* Makefile;
   cmMakefile* Makefile;