mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
a2e19f163a
The example code for DynamicNumericDiffCostFunction and DynamicAutoDiffCostFunction in the documentation was allocating the cost function objects on the stack rather than the heap. Thanks to Rodney Hoskinson for reporting this. Change-Id: I217aee02d1e2c1e9c25b8197451e9f9e0482915d