[Insight-developers] PrintSelf() broken?

Parag Chandra chandra@cs.unc.edu
Thu, 17 May 2001 11:46:40 -0400


Yeah, I noticed that just after I sent the e-mail. Everything works fine;
thanks Luis. As usual, I find a fix to my own problem five minutes after
asking the group ;-)

----- Original Message -----
From: "Luis Ibanez" <ibanez@choroid.cs.unc.edu>
To: "Parag Chandra" <chandra@cs.unc.edu>
Cc: "insight-Developers" <insight-developers@public.kitware.com>
Sent: Thursday, May 17, 2001 11:36 AM
Subject: Re: [Insight-developers] PrintSelf() broken?


>
>
> Parag,
>
>
> PrintSelf changed recently to be a const function.
>
> If you have a class of your own that derives from
> an ITK class, and you still have a non-const PrintSelf()
> method on it,  the PrintSelf() method called will be the
> one of the ITK base class that satisfies the const API.
>
> Please try to declare const the PrintSelf() method of
> your class.
>
>
> Luis
>
>
>
>
>