Hi all,<br><br> I have a problem in using itkGetConstObjectMacro under Debug mode (gcc). This problem comes from its definition in <a class="el" href="http://www.itk.org/Doxygen/html/itkMacro_8h-source.html">itkMacro.h</a>.<br>
<br> virtual const type & Get##name () const \<br> { \<br> itkDebugMacro("returning " << #name " of " << this->m_##name ); \<br> return this->m_##name; \<br> }<br><br> Because itkDebugMacro wants to print the value of "this->m_##name", it fails to compile when "this->m_##name" is a "complex" type,<br>
say: std::map. Maybe we could remove the need to print "this->m_##name".<br><br> The issue in other macros, such as <br><br><a style="" class="el" href="http://www.itk.org/Doxygen/html/itkMacro_8h.html#89294335d94b115d40e2603f2fff7950">itkGetConstMacro</a><br>
<a class="el" href="http://www.itk.org/Doxygen/html/itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a><br><a class="el" href="http://www.itk.org/Doxygen/html/itkMacro_8h.html#5c9ee7ba633b007afc64326065fa9243">itkGetConstReferenceObjectMacro</a><br>
<a class="el" href="http://www.itk.org/Doxygen/html/itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a><br><a class="el" href="http://www.itk.org/Doxygen/html/itkMacro_8h.html#f6bef9ee7e4c077b96a08848ed4e7660">itkGetObjectMacro</a><br>
<br><br>Thanks,<br>Mengda<br>