Make the destructor of EstimatorInterface virtual

* This is a sane choice (and should arguably always be done for classes with
  virtual methods to avoid undefined behavior)
* It is required for wrapping the EstimatorInterface with SWIG (without virtual
  destructor, deriving from the EstimatorInterface leads to
  -Werror=delete-non-virtual-dtor).
This commit is contained in:
Peter Dürr 2017-08-11 17:22:12 +02:00 committed by Lorenz Meier
parent 9cf0948bcf
commit a2ed0a76f9
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class EstimatorInterface
public:
EstimatorInterface() = default;
~EstimatorInterface() = default;
virtual ~EstimatorInterface() = default;
virtual bool init(uint64_t timestamp) = 0;
virtual bool update() = 0;