From: malaterre Date: Fri, 4 Nov 2005 16:21:40 +0000 (+0000) Subject: ENH: Apparently some gcc version are seriously broken X-Git-Tag: OpenJPEG.Version1.2~47 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=faab3d47c3f7c60f2db504b6682822835ffe4667;p=gdcm.git ENH: Apparently some gcc version are seriously broken --- diff --git a/CMake/gdcmTestIstringStream.cxx b/CMake/gdcmTestIstringStream.cxx new file mode 100644 index 00000000..fd753e6f --- /dev/null +++ b/CMake/gdcmTestIstringStream.cxx @@ -0,0 +1,33 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmTestIstringStream.cxx,v $ + Language: C++ + Date: $Date: 2005/11/04 16:21:40 $ + Version: $Revision: 1.1 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + +#include +#include + +int main() +{ + std::istringstream os; + int vm; + std::string s = "0"; + os.str(s); + + os >> vm; + + return vm; +} +