From: bangerth Date: Tue, 23 Apr 2013 14:46:08 +0000 (+0000) Subject: Back out the significant part of the previous change to this class in X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6de76efb1642aa3f377024eca28dbcabcfb6c74b;p=dealii-svn.git Back out the significant part of the previous change to this class in hopes of bringing test results back to normal. git-svn-id: https://svn.dealii.org/trunk@29376 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/logstream.h b/deal.II/include/deal.II/base/logstream.h index 5a6166acb6..d18d40b2b8 100644 --- a/deal.II/include/deal.II/base/logstream.h +++ b/deal.II/include/deal.II/base/logstream.h @@ -587,20 +587,11 @@ LogStream::operator<< (const T &t) { // save the state of the output stream std::ostringstream &stream = get_stream(); - - const std::ios::fmtflags old_flags = stream.flags(stream_flags); - const unsigned int old_precision = stream.precision (stream_precision); - const unsigned int old_width = stream.width (stream_width); // print to the internal stringstream, using the flags we have just set for // the stream object: stream << t; - // reset output format to whatever it was before - stream.flags (old_flags); - stream.precision(old_precision); - stream.width(old_width); - return *this; } @@ -612,9 +603,6 @@ LogStream::operator<< (const double t) { // save the state of out stream std::ostringstream &stream = get_stream(); - const std::ios::fmtflags old_flags = stream.flags(stream_flags); - const unsigned int old_precision = stream.precision (stream_precision); - const unsigned int old_width = stream.width (stream_width); // we have to make sure that we don't catch NaN's and +-Inf's with the // test, because for these denormals all comparisons are always false. @@ -627,11 +615,6 @@ LogStream::operator<< (const double t) else stream << t*(1.+offset); - // reset output format - stream.flags (old_flags); - stream.precision(old_precision); - stream.width(old_width); - return *this; } @@ -643,9 +626,6 @@ LogStream::operator<< (const float t) { // save the state of out stream std::ostringstream &stream = get_stream(); - const std::ios::fmtflags old_flags = stream.flags(stream_flags); - const unsigned int old_precision = stream.precision (stream_precision); - const unsigned int old_width = stream.width (stream_width); // we have to make sure that we don't catch NaN's and +-Inf's with the // test, because for these denormals all comparisons are always false. @@ -658,11 +638,6 @@ LogStream::operator<< (const float t) else stream << t*(1.+offset); - // reset output format - stream.flags (old_flags); - stream.precision(old_precision); - stream.width(old_width); - return *this; }