X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.h;h=476c0f1878bbe42ce70141f657e58f5a5804ec6f;hb=1a13aa34de4f99334b27050c18b32e6e4c8f0650;hp=3f6e72db4d7099d92ed3d1d42e6c19e7aea9868e;hpb=e0bfd8dc8b4063f757b7f3858d7c1efeadc17561;p=clitk.git diff --git a/common/clitkCommon.h b/common/clitkCommon.h index 3f6e72d..476c0f1 100644 --- a/common/clitkCommon.h +++ b/common/clitkCommon.h @@ -29,6 +29,8 @@ #include #include +#include + //-------------------------------------------------------------------- namespace clitk { @@ -38,12 +40,12 @@ namespace clitk { //-------------------------------------------------------------------- // display -#define DD(a) std::cout << #a " = [ " << a << " ]" << std::endl; -#define DDV(a,n) { std::cout << #a " = [ "; for(unsigned int _i_=0; _i_ void _print_container(T const& a) { for(typename T::const_iterator i=a.begin();i!=a.end();++i) { std::cout << *i << " "; };} -#define DDS(a) { std::cout << #a " = [ "; _print_container(a) ; std::cout << " ]" << std::endl;} +#define DDS(a) { std::cout << #a " = [ "; _print_container(a) ; std::cout << " ]" << std::endl;std::cout.flush():} //-------------------------------------------------------------------- // when everything goes wrong