Reduce unary operator overhead

This commit is contained in:
Jason Turner
2015-06-23 14:25:34 -06:00
parent b53432cf28
commit 4890b47460
2 changed files with 116 additions and 28 deletions

View File

@@ -1151,7 +1151,7 @@ namespace chaiscript
// short circuit arithmetic operations
if (m_oper != Operators::invalid && bv.get_type_info().is_arithmetic())
{
return Boxed_Number::do_oper(m_oper, std::move(bv));
return Boxed_Number::do_oper(m_oper, bv);
} else {
chaiscript::eval::detail::Function_Push_Pop fpp(t_ss);
chaiscript::eval::detail::Stack_Push_Pop spp(t_ss);