From 807ee5dc00a631beeb28ed10c8e1004cf12509ce Mon Sep 17 00:00:00 2001 From: Paul-Edouard Sarlin <15985472+sarlinpe@users.noreply.github.com> Date: Mon, 27 May 2024 09:07:32 +0200 Subject: [PATCH] Use shared_ptr holde for Problem (#45) --- _pyceres/core/problem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pyceres/core/problem.h b/_pyceres/core/problem.h index 585071e..562fd76 100644 --- a/_pyceres/core/problem.h +++ b/_pyceres/core/problem.h @@ -52,7 +52,7 @@ void BindProblem(py::module& m) { py::class_ residual_block_wrapper(m, "ResidualBlock"); - py::class_(m, "Problem") + py::class_>(m, "Problem") .def(py::init(&CreatePythonProblem)) .def(py::init()) .def("num_parameter_blocks", &ceres::Problem::NumParameterBlocks)