From 879f56a62d0772c95e92d0657882eb1886b4153d Mon Sep 17 00:00:00 2001 From: malaterre Date: Sun, 10 Oct 2004 03:07:59 +0000 Subject: [PATCH] ENH: Fix a warning with gcc4: TestHash.cxx:20: warning: deprecated conversion from string constant to char* --- Testing/TestHash.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.45.1