From 92b3272823eaa74a3d8a08bde6d8a2dedb1543c9 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Sat, 26 Oct 2024 18:08:43 -0400 Subject: [PATCH] make shared_ptr a reference --- gtsam/linear/PCGSolver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/PCGSolver.h b/gtsam/linear/PCGSolver.h index 42bb3fccc..17cc2d3db 100644 --- a/gtsam/linear/PCGSolver.h +++ b/gtsam/linear/PCGSolver.h @@ -42,7 +42,7 @@ struct GTSAM_EXPORT PCGSolverParameters : public ConjugateGradientParameters { PCGSolverParameters() {} PCGSolverParameters( - const std::shared_ptr preconditioner) + const std::shared_ptr &preconditioner) : preconditioner(preconditioner) {} void print(std::ostream &os) const override;