mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Add final specifier to internal classes.
This should help the compiler devirtualize a bunch of function calls. https://github.com/ceres-solver/ceres-solver/issues/747 Change-Id: I9913e68d85e0e9c9f955a249cc710a657875c869
This commit is contained in:
@@ -61,7 +61,7 @@ using std::vector;
|
||||
|
||||
namespace {
|
||||
|
||||
class GradientCheckingCostFunction : public CostFunction {
|
||||
class GradientCheckingCostFunction final : public CostFunction {
|
||||
public:
|
||||
GradientCheckingCostFunction(const CostFunction* function,
|
||||
const std::vector<const Manifold*>* manifolds,
|
||||
|
||||
Reference in New Issue
Block a user