]> Creatis software - gdcm.git/blob - CMake/gdcmTestIstringStream.cxx
Fix mistypings
[gdcm.git] / CMake / gdcmTestIstringStream.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmTestIstringStream.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/11/23 16:13:22 $
7   Version:   $Revision: 1.3 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #include <sstream>
20
21 int main()
22 {
23   std::istringstream os;
24   int vm;
25   std::string s = "5";
26   os.str(s);
27
28   os >> vm;
29
30   return vm;
31 }
32