]> Creatis software - clitk.git/commitdiff
itkv4 compatibility
authorschaerer <schaerer>
Wed, 20 Oct 2010 13:34:18 +0000 (13:34 +0000)
committerschaerer <schaerer>
Wed, 20 Oct 2010 13:34:18 +0000 (13:34 +0000)
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.  */ \