Fix numeric overload resolution

Closes #209
This commit is contained in:
Jason Turner
2015-10-01 09:56:53 -06:00
parent d9fa5605ac
commit 5a651e2b8a
2 changed files with 2 additions and 1 deletions

View File

@@ -1033,6 +1033,7 @@ namespace chaiscript
if (funs.first != loc) t_loc.store(uint_fast32_t(funs.first), std::memory_order_relaxed);
Boxed_Value bv = dispatch::dispatch(*funs.second, params, m_conversions);
// the result of a clone is never to be marked as a return_value
// \todo see if we can eliminate this comparison
if (t_name == "clone") {
bv.reset_return_value();
}