Add an accessor for the CostFunctor in DynamicAutoDiffCostFunction

https://github.com/ceres-solver/ceres-solver/issues/962

Change-Id: I50c327eb7ac09a894582ee3fb3311825607640c0
This commit is contained in:
Sameer Agarwal
2023-09-25 05:44:30 -07:00
parent bea2477010
commit dffd8cd71b
@@ -264,6 +264,8 @@ class DynamicAutoDiffCostFunction final : public DynamicCostFunction {
return true;
}
const CostFunctor& functor() const { return *functor_; }
private:
std::unique_ptr<CostFunctor> functor_;
Ownership ownership_;