Commit d64fd7f4 authored by Christoph Grüninger's avatar Christoph Grüninger Committed by Timo Koch
Browse files

Make copying in for loop of std::string explicit

Get rid of warning -Wrange-loop-construct.
parent 910107e9
......@@ -202,7 +202,7 @@ public:
// write header
logFile << "time";
for (const std::string& e : { "L2Abs", "L2Rel", "LinfAbs", "LinfRel" })
for (const std::string e : { "L2Abs", "L2Rel", "LinfAbs", "LinfRel" })
printError_(logFile, errorNames_(e), "{:s}");
logFile << "\n";
}
......@@ -480,7 +480,7 @@ public:
// write header
logFile << "time";
using ErrorNames = std::vector<std::string>;
for (const std::string& e : { "L2Abs", "L2Rel", "LinfAbs", "LinfRel" })
for (const std::string e : { "L2Abs", "L2Rel", "LinfAbs", "LinfRel" })
printError_(logFile, ErrorNames({ e + "(p)", e + "(u)", e + "(v)", e + "(w)" }), "{:s}");
logFile << "\n";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment