Skip to content

Commit

Permalink
[Py] add PythonInnerSolver constructor
Browse files Browse the repository at this point in the history
Works around std::is_constructible problem on macOS (Apple Clang 15)
  • Loading branch information
tttapa committed Dec 2, 2024
1 parent 627f2d8 commit b3df08a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interfaces/python/src/inner/python-inner-solver.py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ void register_python_inner_solver(py::module_ &) {
struct PythonInnerSolver {
py::object solver;

PythonInnerSolver(py::object solver) : solver(std::move(solver)) {}

using Problem = TEProblem;
using SolveOptions = alpaqa::InnerSolveOptions<config_t>;
py::object operator()(const Problem &problem, const SolveOptions &opt, rvec x, rvec y,
Expand Down

0 comments on commit b3df08a

Please sign in to comment.