From 0d42b6962669e20d31f6f7b566eefb2aecefa050 Mon Sep 17 00:00:00 2001 From: schaerer Date: Wed, 20 Oct 2010 13:34:18 +0000 Subject: [PATCH] itkv4 compatibility --- common/clitkExceptionObject.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/clitkExceptionObject.h b/common/clitkExceptionObject.h index 01d8f2a..af5f421 100644 --- a/common/clitkExceptionObject.h +++ b/common/clitkExceptionObject.h @@ -19,6 +19,8 @@ #ifndef CLITKEXCEPTIONOBJECT_H #define CLITKEXCEPTIONOBJECT_H +#include + // clitk #include "clitkCommon.h" @@ -46,7 +48,7 @@ namespace clitk { // itkObject #define clitkExceptionMacro(x) \ { \ - ::itk::OStringStream message; \ + std::ostringstream message; \ message << x; \ ::clitk::ExceptionObject e_(__FILE__, __LINE__, message.str().c_str()); \ throw e_; /* Explicit naming to work around Intel compiler bug. */ \ -- 2.47.1