]> Creatis software - gdcm.git/commitdiff
ENH: Fix a warning with gcc4: TestHash.cxx:20: warning: deprecated conversion from...
authormalaterre <malaterre>
Sun, 10 Oct 2004 03:07:59 +0000 (03:07 +0000)
committermalaterre <malaterre>
Sun, 10 Oct 2004 03:07:59 +0000 (03:07 +0000)
Testing/TestHash.cxx

index e712e355b616065ed8bc5b19810511fbf542ed77..51f1ddf13cea8574645fd2f4e557a7c104890b7d 100644 (file)
@@ -11,7 +11,7 @@ int TestHash( int, char * [] )
              << std::endl
              << "   by gdcm are operational. " << std::endl;
 
-   typedef std::map<std::string, char*> dict;
+   typedef std::map<std::string, std::string> dict;
    dict tb1;
 
    // Adding entries by key:
@@ -42,10 +42,10 @@ int TestHash( int, char * [] )
    //   http://www.developer.com/net/cplus/article.php/10919_2119781_3
    // Alas it doesn't work with g++ (at least)...
    int i = 0x0010;
-   std::cout.setf(std::ios::hex);
-   std::cout << "Test::TestHash : hexdecimal output : " << i << std::endl;
-   std::cout.setf(std::ios::dec);
-   std::cout << "Test::TestHash : decimal output : "    << i << std::endl;
+   //std::cout.setf(std::ios::hex);
+   std::cout << "Test::TestHash : hexdecimal output : " << std::hex << i << std::endl;
+   //std::cout.setf(std::ios::dec);
+   std::cout << "Test::TestHash : decimal output : "    << std::dec << i << std::endl;
 
    return 0;
 }