[Insight-developers] pure virtual methods vs exceptions throwing

Luis Ibanez luis.ibanez@kitware.com
Wed, 27 Feb 2002 10:38:58 -0500


Stephen R. Aylward wrote:

>Only other option would be to keep smart pointers from doing
>construction...
>

Yeap !
Bill Hoffman here just gave the same solution to the problem:

" Abstract classes should not have an itkNewMacro() at all. "

I was writting the macros by reflex...
So, I'll remove the itkNewMacro() from the abstract classes,
make the methods pure virtual again (and get rid of the exception
throwing).


Thanks

    Luis