mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
made the clone function pure virtual
Avoids potential problems with derived classes which do not define a clone function.
This commit is contained in:
committed by
Andrew Heather
parent
5157be4bb3
commit
2f431ffd3d
@ -105,10 +105,7 @@ public:
|
||||
Function1(const Function1<Type>& de);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual tmp<Function1<Type>> clone() const
|
||||
{
|
||||
return tmp<Function1<Type>>(new Function1<Type>(*this));
|
||||
}
|
||||
virtual tmp<Function1<Type>> clone() const = 0;
|
||||
|
||||
|
||||
//- Selector
|
||||
|
||||
Reference in New Issue
Block a user