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:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -89,13 +89,6 @@ class FUNCTIONOBJECT
|
||||
// Private Member Functions
|
||||
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
FUNCTIONOBJECT(const FUNCTIONOBJECT&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const FUNCTIONOBJECT&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -112,6 +105,9 @@ public:
|
||||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
FUNCTIONOBJECT(const FUNCTIONOBJECT&) = delete;
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~FUNCTIONOBJECT();
|
||||
@ -130,6 +126,12 @@ public:
|
||||
|
||||
//- Write the FUNCTIONOBJECT
|
||||
virtual bool write();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const FUNCTIONOBJECT&) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -69,12 +69,6 @@ class CLASSNAME
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
CLASSNAME(const CLASSNAME&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const CLASSNAME&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -98,6 +92,9 @@ public:
|
||||
//- Copy constructor
|
||||
CLASSNAME(const CLASSNAME&);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
CLASSNAME(const CLASSNAME&) = delete;
|
||||
|
||||
|
||||
// Selectors
|
||||
|
||||
@ -124,6 +121,9 @@ public:
|
||||
|
||||
void operator=(const CLASSNAME&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const CLASSNAME&) = delete;
|
||||
|
||||
|
||||
// Friend Functions
|
||||
|
||||
|
||||
@ -75,12 +75,6 @@ class CLASSNAME
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
CLASSNAME(const CLASSNAME<TemplateArgument>&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const CLASSNAME<TemplateArgument>&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -104,6 +98,9 @@ public:
|
||||
//- Copy constructor
|
||||
CLASSNAME(const CLASSNAME<TemplateArgument>&);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
CLASSNAME(const CLASSNAME<TemplateArgument>&) = delete;
|
||||
|
||||
|
||||
// Selectors
|
||||
|
||||
@ -121,6 +118,9 @@ public:
|
||||
|
||||
void operator=(const CLASSNAME<TemplateArgument>&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const CLASSNAME<TemplateArgument>&) = delete;
|
||||
|
||||
|
||||
// Friend Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user