[IGSTK-Developers] Namespace problems with igstkCoordinateSystemClassInterfaceMacro()
Torleif Sandnes
Torleif.Sandnes at sintef.no
Mon Jul 28 09:16:18 EDT 2008
> 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.
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
More information about the IGSTK-Developers
mailing list