]> Creatis software - clitk.git/blobdiff - itk/RelativePositionPropImageFilter.txx
Ensure compatibility with ITK < 4.12 for throw exception
[clitk.git] / itk / RelativePositionPropImageFilter.txx
index eee0f0a748c95a99e63def5712a0c166ee50dbb0..c34c7c3f2241a1492fb014d71af8b00413b33144 100644 (file)
@@ -50,7 +50,11 @@ namespace itk
   template <class TInputImage, class TOutputImage,class TtNorm>
   void 
   RelativePositionPropImageFilter<TInputImage,TOutputImage,TtNorm>
+#if ( ( ITK_VERSION_MAJOR == 4 ) && ( ITK_VERSION_MINOR > 12 ) || ( ITK_VERSION_MAJOR > 4 ))
+  ::GenerateInputRequestedRegion()
+#else
   ::GenerateInputRequestedRegion() throw (InvalidRequestedRegionError)
+#endif
   {
     // call the superclass' implementation of this method
     Superclass::GenerateInputRequestedRegion ();