Files
ceres-solver/examples
Sergiu Deitsch 91773746be Simplify instantiation of cost functions and their functors
If arguments are passed to a cost function that can be used to construct
the functor, the latter will be instantiated by the cost function using
std::make_unique to ensure exception safety. This not only avoids static
analysis warnings caused by calling new but also spelling the cost
functor type name multiple times.

Also expand deduction guides for instantiating
Dynamic(Auto|Numeric)DiffCostFunction from std::unique_ptr enabled
constructor overloads.

Finally, make CostFunction default move constructible and assignable but
only through derived classes. This in turn allows derived classes to be
movable without relying on custom implementations of corresponding
operators.

Change-Id: Idee8b9871d862bc9f9f8b5a8d0bedc52863e93c0
2024-01-23 01:34:27 +01:00
..
2023-09-21 11:23:38 -07:00
2023-09-21 11:23:38 -07:00
2023-01-09 06:19:18 +00:00
2023-09-21 11:23:38 -07:00
2023-09-21 11:23:38 -07:00
2023-09-21 11:23:38 -07:00
2023-09-21 11:23:38 -07:00
2023-09-21 11:23:38 -07:00
2023-09-21 11:23:38 -07:00
2023-09-27 14:46:54 -07:00
2023-09-28 14:45:18 -07:00