I am struggling to use the copy constructor of the class Function.
What is the reason why this is not the way to copy a Function?
Function* other;
... // steps to give value to other
Function* this = new Function(*other);
I get the following error :
Vectors must be of the same length when assigning. Consider using the copy constructor instead.