mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Use override & final instead of just using virtual.
This is safer than using virtual and this lead to a minor bug fixes. Change-Id: Id69cb1cc569bf6bf245f22f029c7871b6c712568
This commit is contained in:
@@ -225,9 +225,9 @@ TEST(NumericDiffCostFunction,
|
||||
template<int num_rows, int num_cols>
|
||||
class SizeTestingCostFunction : public SizedCostFunction<num_rows, num_cols> {
|
||||
public:
|
||||
virtual bool Evaluate(double const* const* parameters,
|
||||
double* residuals,
|
||||
double** jacobians) const {
|
||||
bool Evaluate(double const* const* parameters,
|
||||
double* residuals,
|
||||
double** jacobians) const final {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user