and <strstream>, because the former only existed from gcc2.95.3 on.
git-svn-id: https://svn.dealii.org/trunk@5021
0785d39b-7218-0410-832d-
ea1e28bc413d
#include <base/table_handler.h>
-#include <sstream>
+#include <strstream>
#include <iostream>
#include <iomanip>
+//TODO:[WB] (compiler) use i/ostringstream instead of i/ostrstream if they become available
+
TableEntryBase::TableEntryBase ()
{}
// 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)
// 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
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