diff --git a/gtsam/linear/PCGSolver.h b/gtsam/linear/PCGSolver.h index 17cc2d3db..42bb3fccc 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;