]> Creatis software - clitk.git/blobdiff - common/clitkExceptionObject.h
Corrected erroneous free when a real RECTILINEAR field is detected
[clitk.git] / common / clitkExceptionObject.h
index 01d8f2acab46ef2047f11e0eaaf67346cb490398..af5f421cac28f5462334758ebae3eaec2e62275b 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef CLITKEXCEPTIONOBJECT_H
 #define CLITKEXCEPTIONOBJECT_H
 
+#include <sstream>
+
 // 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.  */ \