diff --git a/modules/core/include/visp3/core/vpImageMorphology.h b/modules/core/include/visp3/core/vpImageMorphology.h index b73848a3c9..ac992920dd 100644 --- a/modules/core/include/visp3/core/vpImageMorphology.h +++ b/modules/core/include/visp3/core/vpImageMorphology.h @@ -143,6 +143,10 @@ class VISP_EXPORT vpImageMorphology public: vpPixelOperation() { } +#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) + virtual ~vpPixelOperation() = default; +#endif + virtual T operator()(const T &, const T &) = 0; }; diff --git a/modules/core/include/visp3/core/vpUKSigmaDrawerAbstract.h b/modules/core/include/visp3/core/vpUKSigmaDrawerAbstract.h index f6313fed8d..76c225cc1f 100644 --- a/modules/core/include/visp3/core/vpUKSigmaDrawerAbstract.h +++ b/modules/core/include/visp3/core/vpUKSigmaDrawerAbstract.h @@ -61,6 +61,8 @@ class VISP_EXPORT vpUKSigmaDrawerAbstract inline vpUKSigmaDrawerAbstract(const unsigned int &n) : m_n(n) { } + virtual ~vpUKSigmaDrawerAbstract() = default; + /** * \brief Draw the sigma points according to the current mean and covariance of the state * of the Unscented Kalman filter.