STYLE: adjust codeTemplates to use '= delete'

This commit is contained in:
Mark Olesen
2018-04-19 07:38:31 +02:00
parent 367ddb8f05
commit ef922b6917
4 changed files with 21 additions and 25 deletions

View File

@ -44,7 +44,7 @@ ${codeInclude}
namespace Foam
{
// Forward declaration of classes
// Forward declarations
class fvMesh;
/*---------------------------------------------------------------------------*\
@ -66,11 +66,11 @@ class ${typeName}FunctionObject
const fvMesh& mesh() const;
//- Disallow default bitwise copy construct
${typeName}FunctionObject(const ${typeName}FunctionObject&);
//- No copy construct
${typeName}FunctionObject(const ${typeName}FunctionObject&) = delete;
//- Disallow default bitwise assignment
void operator=(const ${typeName}FunctionObject&);
//- No copy assignment
void operator=(const ${typeName}FunctionObject&) = delete;
public:
@ -97,7 +97,7 @@ public:
// Member Functions
//- Read the system calls
virtual bool read(const dictionary&);
virtual bool read(const dictionary& dict);
//- Execute the "executeCalls" at each time-step
virtual bool execute();