]> Creatis software - gdcm.git/commitdiff
ENH: Apparently some gcc version are seriously broken
authormalaterre <malaterre>
Fri, 4 Nov 2005 16:21:40 +0000 (16:21 +0000)
committermalaterre <malaterre>
Fri, 4 Nov 2005 16:21:40 +0000 (16:21 +0000)
CMake/gdcmTestIstringStream.cxx [new file with mode: 0644]

diff --git a/CMake/gdcmTestIstringStream.cxx b/CMake/gdcmTestIstringStream.cxx
new file mode 100644 (file)
index 0000000..fd753e6
--- /dev/null
@@ -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 <stdint.h>
+#include <sstream>
+
+int main()
+{
+  std::istringstream os;
+  int vm;
+  std::string s = "0";
+  os.str(s);
+
+  os >> vm;
+
+  return vm;
+}
+