Skip to content

Commit

Permalink
ENH: Allow using std::vector<T> in itkSetMacro and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Feb 3, 2024
1 parent b6a6b6b commit 71c5c83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modules/Core/Common/include/itkMacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <cstdlib>
#ifndef NDEBUG
# include <cassert>
# include "itkPrintHelper.h" // for ostream operator<<std::vector<T>
#endif

#include <sstream>
Expand Down Expand Up @@ -509,6 +510,7 @@ OutputWindowDisplayDebugText(const char *);
# define itkDebugMacro(x) \
do \
{ \
using namespace ::itk::print_helper; /* for ostream << std::vector<T> */ \
if (this->GetDebug() && ::itk::Object::GetGlobalWarningDisplay()) \
{ \
std::ostringstream itkmsg; \
Expand Down

0 comments on commit 71c5c83

Please sign in to comment.