From 3f3cc7e7e126ebcc4715a9c297d8d3befd7e40d1 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Wed, 13 Mar 2019 22:39:05 +0100
Subject: [PATCH] WRG: use override if ITKv3 compat is ON

---
 Modules/Core/Transform/include/otbTransform.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Modules/Core/Transform/include/otbTransform.h b/Modules/Core/Transform/include/otbTransform.h
index dd2ba3efb4..8f3882c5b4 100644
--- a/Modules/Core/Transform/include/otbTransform.h
+++ b/Modules/Core/Transform/include/otbTransform.h
@@ -188,7 +188,11 @@ public:
    *
    * \f]
    * */
+#ifdef ITKV3_COMPATIBILITY
+  const JacobianType & GetJacobian(const InputPointType  &) const override
+#else
   virtual const JacobianType & GetJacobian(const InputPointType  &) const
+#endif
     {
     itkExceptionMacro( << "Subclass should override this method (GetJacobian)" );
     // Next line is needed to avoid errors due to:
-- 
GitLab