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

@ -43,11 +43,10 @@ SourceFiles
namespace Foam
{
// Forward declaration of classes
// Forward declarations
class Istream;
class Ostream;
// Forward declaration of friend functions and operators
class CLASSNAME;
Istream& operator>>(Istream&, CLASSNAME&);
Ostream& operator<<(Ostream&, const CLASSNAME&);
@ -69,11 +68,11 @@ class CLASSNAME
// Private Member Functions
//- Disallow default bitwise copy construct
CLASSNAME(const CLASSNAME&);
//- No copy construct
CLASSNAME(const CLASSNAME&) = delete;
//- Disallow default bitwise assignment
void operator=(const CLASSNAME&);
//- No copy assignment
void operator=(const CLASSNAME&) = delete;
public:
@ -93,7 +92,7 @@ public:
CLASSNAME(const dataType& data);
//- Construct from Istream
CLASSNAME(Istream&);
CLASSNAME(Istream& is);
//- Construct as copy
CLASSNAME(const CLASSNAME&);