Prevent unnecessary copies in Spicy bindings

This commit is contained in:
Benjamin Bannier 2025-01-09 11:33:30 +01:00
parent 7f1d3ae559
commit a4ab0af70d
6 changed files with 17 additions and 17 deletions

View file

@ -705,7 +705,7 @@ inline ValPtr to_val(const hilti::rt::Vector<T>& v, const TypePtr& target) {
for ( const auto& i : v )
zv->Assign(zv->Size(), to_val(i, vt->Yield()));
return zv;
return std::move(zv);
}
/**