fix move pessimisation in python binding
This commit is contained in:
parent
aec5c50282
commit
8b925b8576
|
@ -20,7 +20,7 @@ struct entry_to_python
|
||||||
result.append(*i);
|
result.append(*i);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return std::move(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static object convert(entry::dictionary_type const& d)
|
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)
|
for (entry::dictionary_type::const_iterator i(d.begin()), e(d.end()); i != e; ++i)
|
||||||
result[bytes(i->first)] = i->second;
|
result[bytes(i->first)] = i->second;
|
||||||
|
|
||||||
return result;
|
return std::move(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static object convert0(entry const& e)
|
static object convert0(entry const& e)
|
||||||
|
|
Loading…
Reference in New Issue