Skip to content

igtlTypeMacro not working outside igtl namespace #195

@djromberg

Description

@djromberg

When defining own messages derived from igtl::MessageBase or other bases, the igtlTypeMacro can only be used when the defining class is inside the igtl namespace. The reason is the reference to the SmartPointer template which is not fully qualified in the macro. A workaround is to use a template<typename T> using SmartPointer = igtl::SmartPointer<T>; before using the macro, but in my opinion the macro should be changed to use igtl::SmartPointer directly instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions