From 1a900d4548187d47bb933ef32360c922c230508f Mon Sep 17 00:00:00 2001 From: shueja-personal Date: Tue, 14 Nov 2023 01:08:54 -0800 Subject: [PATCH] fix pointer --- 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 367d1947..822534c2 100644 --- a/src/optimization/CasADiOpti.cpp +++ b/src/optimization/CasADiOpti.cpp @@ -29,7 +29,7 @@ void CasADiOpti::Solve() { // 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. auto pluginOptions = casadi::Dict(); - pluginOptions["iteration_callback"] = &callback; + pluginOptions["iteration_callback"] = *callback; //auto reference = &pluginOptions["iteration_callback"]; opti.solver("ipopt", pluginOptions); #else