made the clone function pure virtual

Avoids potential problems with derived classes which do not define a clone function.
This commit is contained in:
Henry Weller
2017-07-13 23:24:14 +01:00
committed by Andrew Heather
parent 5157be4bb3
commit 2f431ffd3d
11 changed files with 72 additions and 15 deletions

View File

@ -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