[Insight-developers] reinterpret_cast : asking for help

Luis Ibanez luis.ibanez at kitware.com
Tue Feb 17 22:51:27 EST 2009


Hi Gaetan,

Could you help us understand the use of "reinterpret_cast" in the
itkKernelImageFilter.txx file ?

Currently it generates a warning, and... further reading about
the reinterpret_cast lead us to think that it shouldn't be used
in this case (e.g. to convert high level classes to others).

The preceding test of typeid() comparisons may also, not be
performing the expected task. Please note that in the Events
we end up using dynamic_cast in order to check whether one
class was actually derived from another.


   Thanks for any hints,



       Luis





More information about the Insight-developers mailing list