]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
handle gcc 2.95 and 3.1 string-streams
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Jul 2002 10:57:02 +0000 (10:57 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Jul 2002 10:57:02 +0000 (10:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@6208 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/mapping.cc

index b6f082468a5dba4699d24b12a9d2b296a26b4012..8b897477e86d9dddcbd0a4977811fc3943dc7249 100644 (file)
 #ifdef HAVE_STD_STRINGSTREAM
 #  include <sstream>
 #  define SSTREAM std::ostringstream
+#  define ENDSTRING
 #else
 #  include <strstream>
 #  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());
              }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.