Get class members that are functions working

Automatic conversion of return values into Proxy_Function objects
Issue: #155
This commit is contained in:
Jason Turner
2015-04-17 12:18:47 -06:00
parent 2f444542ab
commit d2ed8fdcf1
7 changed files with 170 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ namespace chaiscript
std::function<FunctionType>
functor(Const_Proxy_Function func, const Type_Conversions *t_conversions)
{
return functor<FunctionType>(std::vector<Const_Proxy_Function>({func}), t_conversions);
return functor<FunctionType>(std::vector<Const_Proxy_Function>({std::move(func)}), t_conversions);
}
/// Helper for automatically unboxing a Boxed_Value that contains a function object