Added "= delete" to disabled bitwise copy constructors and assignment operators

Currently these deleted function declarations are still in the private section
of the class declarations but will be moved by hand to the public section over
time as this is too complex to automate reliably.
This commit is contained in:
Henry Weller
2019-05-28 15:26:45 +01:00
parent 11780ffae9
commit 9140984cf4
844 changed files with 2305 additions and 2219 deletions

View File

@ -66,12 +66,6 @@ class ${typeName}FunctionObject
const fvMesh& mesh() const;
//- Disallow default bitwise copy construct
${typeName}FunctionObject(const ${typeName}FunctionObject&);
//- Disallow default bitwise assignment
void operator=(const ${typeName}FunctionObject&);
public:
@ -89,6 +83,9 @@ public:
const dictionary&
);
//- Disallow default bitwise copy construct
${typeName}FunctionObject(const ${typeName}FunctionObject&) = delete;
//- Destructor
virtual ~${typeName}FunctionObject();
@ -107,6 +104,12 @@ public:
//- Write, execute the "writeCalls"
virtual bool write();
// Member Operators
//- Disallow default bitwise assignment
void operator=(const ${typeName}FunctionObject&) = delete;
};