X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkExceptionObject.h;h=af5f421cac28f5462334758ebae3eaec2e62275b;hb=de0c500755f798a2ff44bbda3269b9c6c5e065e8;hp=02f9579963e785322885c4a1ddbef54f7fd2d24c;hpb=cb9d2e28489c3531d37c241fe7d8a468451c8e67;p=clitk.git diff --git a/common/clitkExceptionObject.h b/common/clitkExceptionObject.h index 02f9579..af5f421 100644 --- a/common/clitkExceptionObject.h +++ b/common/clitkExceptionObject.h @@ -19,11 +19,13 @@ #ifndef CLITKEXCEPTIONOBJECT_H #define CLITKEXCEPTIONOBJECT_H +#include + // clitk #include "clitkCommon.h" // itk -#include "itkExceptionObject.h" +#include "itkMacro.h" namespace clitk { @@ -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. */ \