mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
Fix arity of functions
A value was being accessed after it was moved.
This commit is contained in:
parent
5515d058bb
commit
5d5e881971
@ -434,8 +434,8 @@ namespace chaiscript
|
|||||||
class Proxy_Function_Impl_Base : public Proxy_Function_Base
|
class Proxy_Function_Impl_Base : public Proxy_Function_Base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Proxy_Function_Impl_Base(std::vector<Type_Info> t_types)
|
Proxy_Function_Impl_Base(const std::vector<Type_Info> &t_types)
|
||||||
: Proxy_Function_Base(std::move(t_types), static_cast<int>(t_types.size()) - 1)
|
: Proxy_Function_Base(t_types, static_cast<int>(t_types.size()) - 1)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user