]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Back out the significant part of the previous change to this class in
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Apr 2013 14:46:08 +0000 (14:46 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Apr 2013 14:46:08 +0000 (14:46 +0000)
hopes of bringing test results back to normal.

git-svn-id: https://svn.dealii.org/trunk@29376 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/logstream.h

index 5a6166acb6f95eb31b21d5e64fd0c3bd713bbcee..d18d40b2b8a64103884b0c3b0488d0a25096a607 100644 (file)
@@ -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;
 }
 

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.