diff --git a/Modules/Core/Common/include/itkBSplineInterpolationWeightFunction.h b/Modules/Core/Common/include/itkBSplineInterpolationWeightFunction.h index 6918027e4fd..d77d1a5324b 100644 --- a/Modules/Core/Common/include/itkBSplineInterpolationWeightFunction.h +++ b/Modules/Core/Common/include/itkBSplineInterpolationWeightFunction.h @@ -123,11 +123,7 @@ class ITK_TEMPLATE_EXPORT BSplineInterpolationWeightFunction /** Table mapping linear offset to indices. */ const TableType m_OffsetToIndexTable{ [] { TableType table; - // Note: Copied the constexpr value `SupportSize` to a local variable, to prevent a GCC - // (Ubuntu 7.5.0-3ubuntu1~18.04) link error, "undefined reference to `SupportSize`", and Clang - // (Mac10.13-AppleClang-dbg-x86_64-static) "Undefined symbols for architecture x86_64". - const auto supportSize = SupportSize; - std::copy_n(ZeroBasedIndexRange(supportSize).cbegin(), NumberOfWeights, table.begin()); + std::copy_n(ZeroBasedIndexRange(SupportSize).cbegin(), NumberOfWeights, table.begin()); return table; }() }; }; diff --git a/Modules/Core/Transform/include/itkBSplineDeformableTransform.hxx b/Modules/Core/Transform/include/itkBSplineDeformableTransform.hxx index be9375e1678..557c1c7b3fc 100644 --- a/Modules/Core/Transform/include/itkBSplineDeformableTransform.hxx +++ b/Modules/Core/Transform/include/itkBSplineDeformableTransform.hxx @@ -500,8 +500,7 @@ BSplineDeformableTransform::Tran this->m_WeightsFunction->Evaluate(index, weights, supportIndex); // For each dimension, correlate coefficient with weights - constexpr SizeType supportSize = WeightsFunctionType::SupportSize; - const RegionType supportRegion(supportIndex, supportSize); + const RegionType supportRegion(supportIndex, WeightsFunctionType::SupportSize); outputPoint.Fill(ScalarType{});