Compilation error when using metaIO with ITK and VTK
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In metaIO, the namespace depends on a header file. In ITK, no namespace is used but in VTK one is used. When building a project that depends on itkMetaEvent.h, (or one of its dependencies like metaIO) if the first header file included is VTK's, the project will fail to compile with the error:
ITKv4\Modules\Core\SpatialObjects\include\itkMetaEvent.h(31): error C2039: 'MetaEvent' : is not a member of '`global namespace'' ITKv4\Modules\Core\SpatialObjects\include\itkMetaEvent.h(31): error C2499: 'itk::MetaEvent' : a class cannot be its own base class
See also: https://github.com/vovythevov/MetaIOBug