Skip to content

Commit 7c91dbc

Browse files
committed
ENH: Gate vnl_math.h include in itkMath.h behind ITK_FUTURE_LEGACY_REMOVE
itk::Math no longer uses anything from vnl_math.h. The include remains for downstream code reaching vnl_math:: transitively through itkMath.h, and disappears under ITK_FUTURE_LEGACY_REMOVE builds.
1 parent 01ac9f2 commit 7c91dbc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Modules/Core/Common/include/itkMath.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
#endif
4141
#include "itkMathDetail.h"
4242
#include "itkConceptChecking.h"
43-
#include <vnl/vnl_math.h>
43+
#if !defined(ITK_FUTURE_LEGACY_REMOVE)
44+
// itk::Math no longer uses vnl_math; kept transitionally for downstream vnl_math:: users.
45+
# include <vnl/vnl_math.h>
46+
#endif
4447

4548
namespace itk::Math
4649
{

0 commit comments

Comments
 (0)