mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: consistent use of '= delete' for removed constructors/assignments
- make the purpose more explicit, and reduces some work for the compiler as well.
This commit is contained in:
@ -138,10 +138,10 @@ class streamLine
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
streamLine(const streamLine&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const streamLine&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -53,11 +53,11 @@ class streamLineParticleCloud
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
streamLineParticleCloud(const streamLineParticleCloud&);
|
||||
//- No copy construct
|
||||
streamLineParticleCloud(const streamLineParticleCloud&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const streamLineParticleCloud&);
|
||||
//- No copy assignment
|
||||
void operator=(const streamLineParticleCloud&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user