From faab3d47c3f7c60f2db504b6682822835ffe4667 Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 4 Nov 2005 16:21:40 +0000 Subject: [PATCH] ENH: Apparently some gcc version are seriously broken --- CMake/gdcmTestIstringStream.cxx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 CMake/gdcmTestIstringStream.cxx 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; +} + -- 2.45.1