fix move pessimisation in python binding

This commit is contained in:
arvidn 2019-04-22 15:44:11 +02:00 committed by Arvid Norberg
parent aec5c50282
commit 8b925b8576
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ struct entry_to_python
result.append(*i);
}
return result;
return std::move(result);
}
static object convert(entry::dictionary_type const& d)
@ -30,7 +30,7 @@ struct entry_to_python
for (entry::dictionary_type::const_iterator i(d.begin()), e(d.end()); i != e; ++i)
result[bytes(i->first)] = i->second;
return result;
return std::move(result);
}
static object convert0(entry const& e)