From e68503c17e7928c27739d5a7d12a9d626dcaa4c6 Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Thu, 9 May 2019 15:58:55 +0200
Subject: [PATCH] BUG: add virtual destructor to RadiometricIndex abstract base
 class

---
 Modules/Radiometry/Indices/include/otbRadiometricIndex.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Modules/Radiometry/Indices/include/otbRadiometricIndex.h b/Modules/Radiometry/Indices/include/otbRadiometricIndex.h
index 15cdba6cad..0d001f301d 100644
--- a/Modules/Radiometry/Indices/include/otbRadiometricIndex.h
+++ b/Modules/Radiometry/Indices/include/otbRadiometricIndex.h
@@ -70,6 +70,11 @@ public:
 
   static constexpr double Epsilon = 0.0000001;
 
+  // Necessary to be used as an abstract base class
+  virtual ~RadiometricIndex()
+  {
+  }
+
   /**
    * \param requiredBands the set<CommonBandNames> of required bands
    * \throw runtime_error if requiredBands contains CommonBandNames::MAX
-- 
GitLab