Commit 323058ce authored by Stéphane Albert's avatar Stéphane Albert

COMP: Fixed error ?class otb::ogr::ImageReference<double>? has no member named...

COMP: Fixed error ?class otb::ogr::ImageReference<double>? has no member named ?GetNameOfClass' [...] in expansion of macro ?itkDebugMacro? when compiling in DEBUG mode.
parent 539a1411
......@@ -52,6 +52,21 @@ 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();
}
#endif // __GXX_RTTI
#endif // !NDEBUG
/** Default constructor.
* \post <tt>m_Spacing = {1,1}</tt>
* \post <tt>m_Origin = {0,0}</tt>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment