diff --git a/Modules/Core/Transform/include/otbTransform.h b/Modules/Core/Transform/include/otbTransform.h index dd2ba3efb486f74dc2f5f82b2725ee4d84661478..8f3882c5b41632a5d4b8612209d89bb5199937fc 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: