CPP code-gen: Use std::move for constructor arguments

This commit is contained in:
Tim Wojtulewicz 2023-07-14 16:43:06 -07:00 committed by Tim Wojtulewicz
parent 73adf2bf01
commit c9f6b3463f

View file

@ -133,7 +133,7 @@ void CPPCompile::DeclareSubclass(const FuncTypePtr& ft, const ProfileFunc* pf, c
auto tn = FullTypeName(id->GetType());
addl_args = addl_args + ", " + tn + " _" + name;
inits = inits + ", " + name + "(_" + name + ")";
inits = inits + ", " + name + "(std::move(_" + name + "))";
}
}