Commit f74c2a8d authored by Paul's avatar Paul
Browse files

Add moves to string parameters

parent 27d8d5b1
......@@ -39,7 +39,7 @@ inline std::string join_strings(Strings strings, const std::string& delim)
auto nit = std::next(it);
return std::accumulate(
nit, strings.end(), *it, [&](std::string x, std::string y) { return x + delim + y; });
nit, strings.end(), *it, [&](std::string x, std::string y) { return std::move(x) + delim + std::move(y); });
}
template <class F>
......
Markdown is supported
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