Skip to content

Commit b3a8296

Browse files
committed
STYLE: Replace itkStaticConstMacro with static constexpr
Use static constexpr directly now that C++11 conformance is required by all compilers. :%s/itkStaticConstMacro *( *\([^,]*\),[ \_s]*\([^,]*\),\_s*\([^)]*\)) */static constexpr \2 \1 = \3/ge 'itkStaticConstMacro(name, type, value)' became unconditionally identical to 'static constexpr type name = value' with ITK commit aec95193ab00e1322039911e1032da00f3a103b6 "ENH: Update compiler macros (#810)", maekclena, 7 May 2019. 'itkGetStaticConstMacro(name)' became unconditionally identical to '(Self::name)' with ITK commit 84e490b81e3f3c2b0edb89ae7b9de53bfc52f2b2 "Removing some outdated compiler conditionals", Hans Johnson, 31 July 2010. Most 'itkStaticConstMacro' calls were removed by ITK commit 5c14741e1e063a132ea7e7ee69c5bd0a4e49af74
1 parent 9bae3cd commit b3a8296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/itkPhysicalCentralDifferenceImageFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ITK_TEMPLATE_EXPORT PhysicalCentralDifferenceImageFunction
5252
/** Standard class type alias. */
5353
using Self = PhysicalCentralDifferenceImageFunction;
5454
using Superclass =
55-
ImageFunction<TInputImage, CovariantVector<double, itkGetStaticConstMacro(ImageDimension)>, TCoordRep>;
55+
ImageFunction<TInputImage, CovariantVector<double, Self::ImageDimension>, TCoordRep>;
5656
using Pointer = SmartPointer<Self>;
5757
using ConstPointer = SmartPointer<const Self>;
5858

0 commit comments

Comments
 (0)