[Insight-developers] Compile time errors for umimplemented methods

Jeffrey Duda jtduda at seas.upenn.edu
Tue Jul 19 14:16:07 EDT 2011


Hi,

I've been working on some of the changes related to Transforms and was
hoping for some guidance on how to best deal with umimplemented methods in
derived classes. This is best described with an example:
in the Transform base class we have two methods for transforming a vector:
1 - TransformVector( vector )
2 - TransformVector( vector, point )
The second is needed for transforms that vary spatially (i.e. deformation
fields). For linear transforms, the point is simply ignored since it is
unnecessary, however since the point is required for a
DeformationFieldTransform, the implementation of the first method currently
throws an exception at run time. I was wondering if/how we could have this
result in a compile-time error instead.

-jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110719/9e1fdc67/attachment.htm>


More information about the Insight-developers mailing list