mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
bb05be341b
Solver::Options::linear_solver_ordering and Solver::Options::inner_iteration_ordering were bare pointers even though Solver::Options took ownership of these objects. This lead to buggy user code and the inability to copy Solver::Options objects around. With this change, these naked pointers have been replaced by a shared_ptr object which will managed the lifetime of these objects. This also leads to simplification of the lifetime handling of these objects inside the solver. The Android.mk and Application.mk files have also been updated to use a newer NDK revision which ships with LLVM's libc++. Change-Id: I25161fb3ddf737be0b3e5dfd8e7a0039b22548cd