From 221573d850d75ce6d7c88162dc157bf5b80a29be Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 18 Sep 2001 07:40:52 +0000 Subject: [PATCH] Don't use stringstream and , rather use old-style strstream and , because the former only existed from gcc2.95.3 on. git-svn-id: https://svn.dealii.org/trunk@5021 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/table_handler.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deal.II/base/source/table_handler.cc b/deal.II/base/source/table_handler.cc index 03f7d8086c..bb0cbef3f7 100644 --- a/deal.II/base/source/table_handler.cc +++ b/deal.II/base/source/table_handler.cc @@ -14,10 +14,12 @@ #include -#include +#include #include #include +//TODO:[WB] (compiler) use i/ostringstream instead of i/ostrstream if they become available + TableEntryBase::TableEntryBase () {} @@ -234,7 +236,7 @@ void TableHandler::write_text(std::ostream &out) const // write it into a dummy // stream, just to get its // size upon output - std::ostringstream dummy_out; + std::ostrstream dummy_out; dummy_out << std::setprecision(column.precision); if (col_iter->second.scientific) @@ -247,7 +249,7 @@ void TableHandler::write_text(std::ostream &out) const // get size, note that we are // not interested in the // trailing \0 - entry_widths[i][j] = dummy_out.str().length()-1; + entry_widths[i][j] = strlen(dummy_out.str()); }; // next compute the width each row -- 2.39.5