[IGSTK-Developers] Namespace problems with igstkCoordinateSystemClassInterfaceMacro()

Andinet Enquobahrie andinet.enqu at kitware.com
Mon Jul 28 10:02:42 EDT 2008


Torleif-

Thanks for the detail description. I have committed a fix to cvs.

Please give it a try and let us know if it solves your problem

-Andinet


>  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.
>
> A minimal example could be:
>
> namespace myownnamespace
> {
> class MyClass
> {
>  MyClass()
>  {
>     igstkCoordinateSystemClassInterfaceConstructorMacro();
>  }
>  ~MyClass(){}
>
> igstkCoordinateSystemClassInterfaceMacro();
> }
> }
>
> int main(int argc, char **argv)
> {
>  myownnamespace::MyClass aclass;
>  return 0;
> }
>
> Torleif
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-developers/attachments/20080728/17a27748/attachment.html>


More information about the IGSTK-Developers mailing list