From ece7b0ce80b2d1e2f6b8233c49ef324520ba24e5 Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 1 Jul 2002 10:57:02 +0000 Subject: [PATCH] handle gcc 2.95 and 3.1 string-streams git-svn-id: https://svn.dealii.org/trunk@6208 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fe/mapping.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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()); } -- 2.39.5