Removed un-needed calls to std::move

These calls were throwing a pessimistic move error and stopping compilation.
This commit is contained in:
Tom Peoples
2019-09-19 17:30:21 +10:00
parent 71433c67b1
commit 018a9bc804
4 changed files with 11 additions and 3 deletions
+1 -2
View File
@@ -45,9 +45,8 @@ boost::optional<ParameterT> parseParameters(std::string::iterator &iter,
const auto ok =
boost::spirit::qi::parse(iter, end, grammar(boost::phoenix::ref(parameters)));
// return move(a.b) is needed to move b out of a and then return the rvalue by implicit move
if (ok && iter == end)
return std::move(parameters);
return parameters;
}
catch (const qi::expectation_failure<It> &failure)
{