From 37f24f2dcba71174d128256fd1014fb18cd6270f Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org> Date: Fri, 24 Apr 2015 09:11:43 +0200 Subject: [PATCH] ENH: declare GetNameOfClass to maintain backward compatibility --- .../GdalAdapters/include/otbImageReference.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Modules/Adapters/GdalAdapters/include/otbImageReference.h b/Modules/Adapters/GdalAdapters/include/otbImageReference.h index 87e759222b..c9dc8af300 100644 --- a/Modules/Adapters/GdalAdapters/include/otbImageReference.h +++ b/Modules/Adapters/GdalAdapters/include/otbImageReference.h @@ -52,20 +52,10 @@ public: typedef itk::Point<PrecisionType, 2> PointType; //@} -#if !defined( NDEBUG ) -#if defined( __GXX_RTTI ) || defined( __cpp_rtti ) - // Fixes compile-time error when compiling in DEBUG mode since - // otb:ImageReference<> is not derived from itk::Object. - // - // Error: ‘class otb::ogr::ImageReference<double>’ has no member - // named ‘GetNameOfClass' [...] in expansion of macro - // ‘itkDebugMacro’ inline const char * GetNameOfClass() { - return typeid( this ).name(); + return "ImageReference"; } -#endif // __GXX_RTTI -#endif // !NDEBUG /** Default constructor. * \post <tt>m_Spacing = {1,1}</tt> -- GitLab