Skip to content

Commit 63f6ddc

Browse files
authored
Merge pull request InsightSoftwareConsortium#6280 from blowekamp/fix-PrintHelper-remove-from-macro-chain
COMP: Fix PrintNumericTrait build error in debug mode
2 parents 0f38de3 + 4f524e8 commit 63f6ddc

8 files changed

Lines changed: 6 additions & 9 deletions

File tree

Modules/Core/Common/include/itkCovariantVector.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#ifndef itkCovariantVector_h
1919
#define itkCovariantVector_h
2020

21-
#include "itkIndent.h"
2221
#include "itkVector.h"
2322
#include "vnl/vnl_vector_ref.h"
2423

Modules/Core/Common/include/itkIndent.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
#ifndef itkIndent_h
2929
#define itkIndent_h
3030

31-
#include "itkMacro.h"
31+
#include "ITKCommonExport.h"
32+
3233
#include <iostream>
3334

3435
namespace itk

Modules/Core/Common/include/itkMacro.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#include <cstdlib>
4949
#ifndef NDEBUG
5050
# include <cassert>
51-
# include "itkPrintHelper.h" // for ostream operator<<std::vector<T>
5251
#endif
5352

5453
#include <sstream>
@@ -1581,4 +1580,7 @@ ContainerCopyWithCheck(MemberContainerType & m, const CopyFromContainerType & c,
15811580

15821581

15831582
#undef allow_inclusion_of_itkExceptionObject_h
1583+
1584+
1585+
#include "itkPrintHelper.h"
15841586
#endif // itkMacro_h

Modules/Core/Common/include/itkPrintHelper.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#ifndef itkPrintHelper_h
2020
#define itkPrintHelper_h
2121

22+
#include "itkMacro.h"
2223
#include "itkIndent.h"
2324

2425
#include <array>
@@ -38,8 +39,6 @@ namespace itk
3839
// sites already #include "itkNumericTraits.h" directly or transitively.
3940
template <typename T>
4041
class NumericTraits;
41-
// Same circular-include guard as NumericTraits<T> above.
42-
class Indent;
4342
} // namespace itk
4443

4544
namespace itk::print_helper

Modules/Core/Common/include/itkRGBAPixel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
# undef RGBAPixel
2424
#endif
2525

26-
#include "itkIndent.h"
2726
#include "itkFixedArray.h"
2827
#include "itkMath.h"
2928

Modules/Core/Common/include/itkRGBPixel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
# undef RGBPixel
2424
#endif
2525

26-
#include "itkIndent.h"
2726
#include "itkFixedArray.h"
2827
#include "itkMath.h"
2928

Modules/Core/Common/include/itkSymmetricSecondRankTensor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
# undef SymmetricSecondRankTensor
2424
#endif
2525

26-
#include "itkIndent.h"
2726
#include "itkFixedArray.h"
2827
#include "itkMatrix.h"
2928
#include "itkSymmetricEigenAnalysis.h"

Modules/Core/Common/test/itkTimeProbeTest.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*=========================================================================*/
1818

1919
#include <iostream>
20-
#include "itkIndent.h"
2120
#include "itkTimeProbe.h"
2221
#include "itkMath.h"
2322

0 commit comments

Comments
 (0)