From: malaterre Date: Sun, 10 Oct 2004 03:07:59 +0000 (+0000) Subject: ENH: Fix a warning with gcc4: TestHash.cxx:20: warning: deprecated conversion from... X-Git-Tag: Version0.6.bp~87 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=879f56a62d0772c95e92d0657882eb1886b4153d;p=gdcm.git ENH: Fix a warning with gcc4: TestHash.cxx:20: warning: deprecated conversion from string constant to char* --- diff --git a/Testing/TestHash.cxx b/Testing/TestHash.cxx index e712e355..51f1ddf1 100644 --- a/Testing/TestHash.cxx +++ b/Testing/TestHash.cxx @@ -11,7 +11,7 @@ int TestHash( int, char * [] ) << std::endl << " by gdcm are operational. " << std::endl; - typedef std::map dict; + typedef std::map 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; }