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)