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
@@ -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,