X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkExceptionObject.h;h=f2f1dd16f82d1f52e521b42b17358d26946a5e16;hb=d55f025b18f68066a52b8f33c2dc6481e82c2580;hp=01d8f2acab46ef2047f11e0eaaf67346cb490398;hpb=104e82c60a7867d9737beaed54cfda62c13df041;p=clitk.git diff --git a/common/clitkExceptionObject.h b/common/clitkExceptionObject.h index 01d8f2a..f2f1dd1 100644 --- a/common/clitkExceptionObject.h +++ b/common/clitkExceptionObject.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,11 +14,13 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ #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. */ \