diff --git a/src/math/math_MultipleVarFunction.cdl b/src/math/math_MultipleVarFunction.cdl index d77983fdaf..cb0d481d38 100644 --- a/src/math/math_MultipleVarFunction.cdl +++ b/src/math/math_MultipleVarFunction.cdl @@ -20,6 +20,8 @@ deferred class MultipleVarFunction from math uses Vector from math is + Delete(me:out) is virtual; + ---C++: alias "Standard_EXPORT virtual ~math_MultipleVarFunction(){Delete();}" NbVariables(me) ---Purpose: diff --git a/src/math/math_MultipleVarFunction.cxx b/src/math/math_MultipleVarFunction.cxx index fa5c832313..b1cb1877c3 100644 --- a/src/math/math_MultipleVarFunction.cxx +++ b/src/math/math_MultipleVarFunction.cxx @@ -16,3 +16,6 @@ #include Standard_Integer math_MultipleVarFunction::GetStateNumber() { return 0; } + +void math_MultipleVarFunction::Delete() +{} diff --git a/src/math/math_MultipleVarFunctionWithGradient.cdl b/src/math/math_MultipleVarFunctionWithGradient.cdl index c2bbc398c1..8804416238 100644 --- a/src/math/math_MultipleVarFunctionWithGradient.cdl +++ b/src/math/math_MultipleVarFunctionWithGradient.cdl @@ -24,7 +24,7 @@ uses Vector from math is - Delete(me:out) is virtual; + Delete(me:out) is redefined virtual; ---C++: alias "Standard_EXPORT virtual ~math_MultipleVarFunctionWithGradient(){Delete();}" NbVariables(me) diff --git a/src/math/math_MultipleVarFunctionWithHessian.cdl b/src/math/math_MultipleVarFunctionWithHessian.cdl index 4f387e5ed0..b20035f2ec 100644 --- a/src/math/math_MultipleVarFunctionWithHessian.cdl +++ b/src/math/math_MultipleVarFunctionWithHessian.cdl @@ -24,6 +24,9 @@ uses Matrix from math, is + Delete(me:out) is redefined virtual; + ---C++: alias "Standard_EXPORT virtual ~math_MultipleVarFunctionWithHessian(){Delete();}" + NbVariables(me) ---Purpose: returns the number of variables of the function. diff --git a/src/math/math_MultipleVarFunctionWithHessian.cxx b/src/math/math_MultipleVarFunctionWithHessian.cxx index 972f474112..2c0044e33a 100644 --- a/src/math/math_MultipleVarFunctionWithHessian.cxx +++ b/src/math/math_MultipleVarFunctionWithHessian.cxx @@ -15,3 +15,6 @@ // commercial license or contractual agreement. #include + +void math_MultipleVarFunctionWithHessian::Delete() +{}