Consider implementing a "automated" downcasting tecniche from FunctionExpressions with single functions into their specific function
Closed this issue · 1 comments
rafaelrojasmiliani commented
Use
gsplines::GSpline curve(...);
gsplines::functions::FunctionExpression curve_dot = curve.derivate()
gsplines::GSpline curve_2 = curve_dot;
See here
rafaelrojasmiliani commented
template<T>
T FunctionExpression::operator(T){return T(*static_cast<T*>(this));}