From 2b786a6551df70760268fcd5b509189c03199732 Mon Sep 17 00:00:00 2001 From: Paul-Edouard Sarlin Date: Mon, 27 May 2024 00:44:23 +0200 Subject: [PATCH] Use shared_ptr holde for Problem --- _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)