X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkExceptionObject.h;h=af5f421cac28f5462334758ebae3eaec2e62275b;hb=f9ba8e0c066f58c8d9f2b10db4306f42470fe7a2;hp=01d8f2acab46ef2047f11e0eaaf67346cb490398;hpb=104e82c60a7867d9737beaed54cfda62c13df041;p=clitk.git 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. */ \