Provide consistency in assignment operators
Always return void to avoid various bugs associated with automatic type conversion. Resolves request http://openfoam.org/mantisbt/view.php?id=1973
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -51,11 +51,11 @@ class NullObject
|
||||
NullObject()
|
||||
{}
|
||||
|
||||
//- Prevent copy-construction
|
||||
//- Disallow default bitwise copy construct
|
||||
NullObject(const NullObject&);
|
||||
|
||||
//- Prevent assignment
|
||||
NullObject& operator=(const NullObject&);
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const NullObject&);
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user