From: malaterre Date: Fri, 14 Nov 2003 16:22:28 +0000 (+0000) Subject: *FIX: Solaris + gcc fixed induced backward error. (don't need ends at the end of... X-Git-Tag: Version0.3.1~27 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=baa889359eba51afddc0c5aa2614fc09fb4d4dab;hp=e9ed8c97435c5edc950177ff1a0e43b6ce4713b8;p=gdcm.git *FIX: Solaris + gcc fixed induced backward error. (don't need ends at the end of ostrstream) --- diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index aa54cba0..0b02c516 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -1,4 +1,4 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.118 2003/11/13 18:49:08 malaterre Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.119 2003/11/14 16:22:28 malaterre Exp $ #include "gdcmHeader.h" @@ -1019,7 +1019,9 @@ void gdcmHeader::LoadElementValue(gdcmElValue * ElVal) { } } } +#ifdef GDCM_NO_ANSI_STRING_STREAM s << std::ends; // to avoid oddities on Solaris +#endif //GDCM_NO_ANSI_STRING_STREAM ElVal->SetValue(s.str()); return; }