[Insight-developers] Dashboard errors and itkEventMacro()

Luis Ibanez ibanez@choroid.cs.unc.edu
Tue, 13 Nov 2001 08:11:28 -0500 (EST)


The large number of errors in the dashboard
this morning is related with the itkEventMacro()
defined in itkEventObject.h.

This macro is provided as a tool for simplifying the
definition of new events by doing all in one line.
The class has a virtual method New() that returns
a pointer to a EventObject.

The errors were originated by the lack of namespace
specification for this pointer. When the macro was
used by the examples, new events were created inside
the "fltk" namespace so the type returned by New()
didn't match the expected type.

The qualification ::itk::EventObject * has been added
and that should take care of the errors.

My apologies for the inconvinients.

Luis