rafaelrojasmiliani/gsplines_cpp

Consider implementing a "automated" downcasting tecniche from FunctionExpressions with single functions into their specific function

Closed this issue · 1 comments

Use

gsplines::GSpline curve(...);
gsplines::functions::FunctionExpression curve_dot = curve.derivate()
gsplines::GSpline curve_2 = curve_dot;

See here

template<T>
T FunctionExpression::operator(T){return T(*static_cast<T*>(this));}