Skip to content

Commit

Permalink
COMP: Work around Clang error: 'MaskType' is not a class, namespace, ...
Browse files Browse the repository at this point in the history
Worked around Clang errors at https://my.cdash.org/viewBuildError.php?buildid=2475511, saying:

> itkImageGridSampler.hxx:473:23: error: 'MaskType' is not a class, namespace, or enumeration
  • Loading branch information
N-Dekker committed Jan 22, 2024
1 parent e9fe464 commit 5a36e0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Common/ImageSamplers/itkImageGridSampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ class ITK_TEMPLATE_EXPORT ImageGridSampler : public ImageSamplerBase<TInputImage
using typename Superclass::ImageSampleType;
using typename Superclass::ImageSampleContainerType;
using typename Superclass::ImageSampleContainerPointer;
using typename Superclass::MaskType;

// Clang/macos-12/Xcode_14.2 does not like `using typename Superclass::MaskType`, saying "error: 'MaskType' is not a
// class, namespace, or enumeration"
using MaskType = typename Superclass::MaskType;

/** The input image dimension. */
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension);
Expand Down

0 comments on commit 5a36e0f

Please sign in to comment.