From: schaerer Date: Wed, 20 Oct 2010 13:34:18 +0000 (+0000) Subject: itkv4 compatibility X-Git-Tag: v1.2.0~339 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=inline;h=0d42b6962669e20d31f6f7b566eefb2aecefa050;p=clitk.git itkv4 compatibility --- 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. */ \