#ifndef CLITKEXCEPTIONOBJECT_H
#define CLITKEXCEPTIONOBJECT_H
+#include <sstream>
+
// clitk
#include "clitkCommon.h"
// itk
-#include "itkExceptionObject.h"
+#include "itkMacro.h"
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. */ \