Skip to content
Snippets Groups Projects
Commit 41af1a2e authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Properly restore iostream format flags

std::setiosflags only enables additional flags, but we might have to
disable some when restoring the original state. std::ios_base::flags
does what we need.
parent 85faa8bf
Branches
No related tags found
No related merge requests found
...@@ -151,8 +151,8 @@ void ::LoopSolver<VectorType, BitVectorType>::solve() ...@@ -151,8 +151,8 @@ void ::LoopSolver<VectorType, BitVectorType>::solve()
std::cout << std::fixed std::cout << std::fixed
<< std::setw(9) << std::setprecision(5) << convRate; << std::setw(9) << std::setprecision(5) << convRate;
std::cout << std::setprecision(oldPrecision) std::cout << std::setprecision(oldPrecision);
<< std::setiosflags(oldFormatFlags); std::cout.flags(oldFormatFlags);
std::cout << this->iterationStep_->getOutput(); std::cout << this->iterationStep_->getOutput();
std::cout << std::endl; std::cout << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment