[IGSTK-Developers] Namespace problems withigstkCoordinateSystemClassInterfaceMacro()

Torleif Sandnes torleif.sandnes at sintef.no
Mon Jul 28 09:26:22 EDT 2008


On Jul 28, 2008, at 15:16 , Torleif Sandnes wrote:
>
>> Welcome back!
>
> Thanks.
>
>> I just checked and both CoordinateSystemClassInterfaceMacro and
>> CoordinateSystemDelegator are both in igstk namespace. I am not  
>> sure what
>> you mean by "not qualified". Can you give us more information? A  
>> small
>> example program that will demonstrate the problem will be great.
>
> The classes I am writing are not in the igstk namespace. Hence,  
> line 99 in igstkCoordinateSysteminterfaceMacros.h will cause problems:
>
> CoordinateSystemDelegator::Pointer m_CoordinateSystemDelegator;
>
> since CoordinateSystemDelegator has not been qualified with the  
> igstk namespace.

I could, of course, just add a declaration "using namespace igstk",  
or even just

using igstk::Transform;
using igstk::CoordinateSystemDelegator;

in my header file, but this pollutes the global namespace (if only to  
a small degree in the second example)
and just doesn´t "feel right".

Torleif 


More information about the IGSTK-Developers mailing list