Skip to content
Snippets Groups Projects
Commit 9f5b8d0e authored by Andrew Heather's avatar Andrew Heather Committed by Mattijs Janssens
Browse files

ENH: polynomial - added clone()

parent dfe98fdf
Branches
Tags
1 merge request!414Feature function1 limit range
......@@ -103,6 +103,12 @@ public:
//- Copy constructor
explicit Polynomial(const Polynomial& poly);
//- Construct and return a clone
virtual tmp<Function1<Type>> clone() const
{
return tmp<Function1<Type>>(new Polynomial<Type>(*this));
}
//- Destructor
virtual ~Polynomial() = default;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment