mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 09:00:37 +08:00
Use override instead of virtual for subclasses.
Now that we are using c++11, it is safer to use override in subclasses instead of virtual. This CL does it for the interface, a follow up CL will do it for other parts of the code base. Change-Id: Ice8d0f4355cb700019d7a9c1566fbff0099e97d6
This commit is contained in:
@@ -196,9 +196,9 @@ class NumericDiffCostFunction : public SizedCostFunction<kNumResiduals, Ns...> {
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool Evaluate(double const* const* parameters,
|
||||
double* residuals,
|
||||
double** jacobians) const {
|
||||
bool Evaluate(double const* const* parameters,
|
||||
double* residuals,
|
||||
double** jacobians) const override {
|
||||
using internal::FixedArray;
|
||||
using internal::NumericDiff;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user