From: guido Date: Mon, 1 Jul 2002 10:57:02 +0000 (+0000) Subject: handle gcc 2.95 and 3.1 string-streams X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ece7b0ce80b2d1e2f6b8233c49ef324520ba24e5;p=dealii-svn.git handle gcc 2.95 and 3.1 string-streams git-svn-id: https://svn.dealii.org/trunk@6208 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/fe/mapping.cc b/tests/fe/mapping.cc index b6f082468a..8b897477e8 100644 --- a/tests/fe/mapping.cc +++ b/tests/fe/mapping.cc @@ -25,9 +25,11 @@ #ifdef HAVE_STD_STRINGSTREAM # include # define SSTREAM std::ostringstream +# define ENDSTRING #else # include # define SSTREAM std::ostrstream +# define ENDSTRING << std::ends #endif #define PRECISION 2 @@ -485,7 +487,7 @@ void mapping_test() { SSTREAM ost; ost << "Mapping" << dim << "d-" << i << '-' - << mapping_strings[j]; + << mapping_strings[j] ENDSTRING; deallog << ost.str() << std::endl; plot_transformation(*mapping_ptr[j], fe_q4, cell, ost.str()); compute_area(*mapping_ptr[j], fe_q4, cell); @@ -495,7 +497,7 @@ void mapping_test() { SSTREAM ost; ost << "MappingFace" << dim << "d-" << i << '-' - << mapping_strings[j]; + << mapping_strings[j] ENDSTRING; deallog << ost.str() << std::endl; plot_faces(*mapping_ptr[j], fe_q4, cell, ost.str()); } @@ -504,7 +506,7 @@ void mapping_test() { SSTREAM ost; ost << "MappingSubface" << dim << "d-" << i << '-' - << mapping_strings[j]; + << mapping_strings[j] ENDSTRING; deallog << ost.str() << std::endl; plot_subfaces(*mapping_ptr[j], fe_q4, cell, ost.str()); }