[Insight-developers] itkDebugMacro() in const objects

Luis Ibanez ibanez@choroid.cs.unc.edu
Wed, 3 Oct 2001 10:39:43 -0400 (EDT)


Hi,

The debug macro is very helpful for
tracking the execution of programs.

However it is currently limited to
be used in non-const objects. It could
be interesting to extending to non-const.

The following are the minor modifications
in itkObject that seems to be necesary :

1) make the boolean m_Debug mutable:

    mutable bool m_Debug

2) declare DebugOn() const

3) declare DebugOff() const

4) declare SetDebug(bool) const



Does anybody see a potential conflict with
these changes ?

Thanks

Luis