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:
Sergiu Deitsch
2022-02-09 20:10:26 +01:00
parent ae65219e04
commit c14f360e63
80 changed files with 207 additions and 124 deletions
@@ -268,7 +268,6 @@ class UnaryCostFunction : public CostFunction {
set_num_residuals(num_residuals);
mutable_parameter_block_sizes()->push_back(parameter_block_size);
}
~UnaryCostFunction() override = default;
bool Evaluate(double const* const* parameters,
double* residuals,