Merge pull request #838 from atgeirr/avoid-pessimizing-move

Do not move when it would disable copy elision.
This commit is contained in:
Atgeirr Flø Rasmussen authored and GitHub committed 2016-09-26 10:25:01 +02:00
commit 3e04ef89f4
1 file changed
+1 -1
@@ -699,7 +699,7 @@ namespace Opm
SolutionVector dx = newtonIncrement.computeNewtonIncrement( residual );
// get number of linear iterations
iterations_ = newtonIncrement.iterations();
return std::move(dx);
return dx;
}
const boost::any& NewtonIterationBlackoilInterleaved::parallelInformation() const