mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Drop trivial special members
Do not define trivial constructors or destructors unless necessary (e.g., for implementing pimpl) following the rule of zero. Define virtual base class destructors out-of-line to avoid emitting vtables in every translation unit. Change-Id: Iea2d8978e62a8ee5a97b86cbb4e858d56e0fb274
This commit is contained in:
@@ -110,7 +110,6 @@ class AutoDiffFirstOrderFunction : public FirstOrderFunction {
|
||||
static_assert(kNumParameters > 0, "kNumParameters must be positive");
|
||||
}
|
||||
|
||||
~AutoDiffFirstOrderFunction() override = default;
|
||||
|
||||
bool Evaluate(const double* const parameters,
|
||||
double* cost,
|
||||
|
||||
Reference in New Issue
Block a user