From 6ec1086642a158eb524862ba4d1c0df05427a845 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Mon, 25 Nov 2024 07:39:33 -0600 Subject: [PATCH] COMP: ISO C++17 does not allow dynamic exception LesionSizingToolkit/src/itkCannyEdgeDetectionImageFilter2.cxx:30: LesionSizingToolkit/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.h:201:34: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] 201 | GenerateInputRequestedRegion() throw(InvalidRequestedRegionError) override; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LesionSizingToolkit/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.h:201:34: note: use 'noexcept(false)' instead 201 | GenerateInputRequestedRegion() throw(InvalidRequestedRegionError) override; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | noexcept(false) --- include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.h | 2 +- include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.hxx | 4 ++-- include/itkLesionSegmentationImageFilter8.h | 2 +- include/itkLesionSegmentationImageFilter8.hxx | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.h b/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.h index b69494c..4796f07 100644 --- a/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.h +++ b/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.h @@ -198,7 +198,7 @@ class ITK_TEMPLATE_EXPORT CannyEdgeDetectionRecursiveGaussianImageFilter * * \sa ImageToImageFilter::GenerateInputRequestedRegion() */ void - GenerateInputRequestedRegion() throw(InvalidRequestedRegionError) override; + GenerateInputRequestedRegion() noexcept(false) override; #ifdef ITK_USE_CONCEPT_CHECKING /** Begin concept checking */ diff --git a/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.hxx b/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.hxx index c3a8184..8a0a966 100644 --- a/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.hxx +++ b/include/itkCannyEdgeDetectionRecursiveGaussianImageFilter.hxx @@ -95,8 +95,8 @@ CannyEdgeDetectionRecursiveGaussianImageFilter::Alloc template void -CannyEdgeDetectionRecursiveGaussianImageFilter::GenerateInputRequestedRegion() throw( - InvalidRequestedRegionError) +CannyEdgeDetectionRecursiveGaussianImageFilter::GenerateInputRequestedRegion() noexcept( + false) { // call the superclass' implementation of this method Superclass::GenerateInputRequestedRegion(); diff --git a/include/itkLesionSegmentationImageFilter8.h b/include/itkLesionSegmentationImageFilter8.h index c467f39..12edd66 100644 --- a/include/itkLesionSegmentationImageFilter8.h +++ b/include/itkLesionSegmentationImageFilter8.h @@ -83,7 +83,7 @@ class LesionSegmentationImageFilter8 : public ImageToImageFilter::LesionSegmentationIma template void -LesionSegmentationImageFilter8::GenerateInputRequestedRegion() throw( - InvalidRequestedRegionError) +LesionSegmentationImageFilter8::GenerateInputRequestedRegion() noexcept(false) { // call the superclass' implementation of this method Superclass::GenerateInputRequestedRegion();