X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FTestHash.cxx;h=51f1ddf13cea8574645fd2f4e557a7c104890b7d;hb=24a0635a8871074306d25000a2989d4959841e8a;hp=771b7bba472031e7f9a304d8c0b019e3f7ddb0c9;hpb=864a539efcd809529bf7f1d6aad6727fd40ace66;p=gdcm.git diff --git a/Testing/TestHash.cxx b/Testing/TestHash.cxx index 771b7bba..51f1ddf1 100644 --- a/Testing/TestHash.cxx +++ b/Testing/TestHash.cxx @@ -1,17 +1,17 @@ +#include "gdcmCommon.h" //to shut up warnings // Checks the basic functionalities of STL . #include #include #include -#include - -int TestHash( int, char * [] ) { +int TestHash( int, char * [] ) +{ std::cout << "Test::TestHash : " << std::endl; std::cout << " Checks that the basic STL functionalities required " << 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; }