From 0bff3b9a3aa8a1610cbeee2ac1907f5f5b6e57be Mon Sep 17 00:00:00 2001 From: shueja-personal Date: Tue, 14 Nov 2023 00:47:03 -0800 Subject: [PATCH] not in class --- src/optimization/CasADiOpti.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/optimization/CasADiOpti.cpp b/src/optimization/CasADiOpti.cpp index ada70ef0..9d0934f0 100644 --- a/src/optimization/CasADiOpti.cpp +++ b/src/optimization/CasADiOpti.cpp @@ -24,7 +24,7 @@ void CasADiOpti::SetInitial(const casadi::MX& expression, double value) { opti.set_initial(expression, value); } void CasADiOpti::Solve() { - callback = CasADiIterCallback("f", opti.nx(), opti.ng(), opti.np()); + auto callback = CasADiIterCallback("f", opti.nx(), opti.ng(), opti.np()); #ifdef DEBUG_OUTPUT // I don't try-catch this next line since it should always work. // I'm assuming the dynamic lib is on the path and casadi can find it.