mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
Revert "Fix bug #481"
This reverts commit a3c033d1db07a74e5f0c1b7a3910b51a226aba83.
This commit is contained in:
parent
a3c033d1db
commit
940afb399c
@ -41,7 +41,7 @@ namespace chaiscript
|
||||
|
||||
Ret call(const Function_Params ¶ms, const Type_Conversions_State &t_state)
|
||||
{
|
||||
if constexpr (std::is_arithmetic_v<Ret> && !std::is_same_v<std::remove_reference_t<std::remove_cv_t<Ret>>, bool>) {
|
||||
if constexpr (std::is_arithmetic_v<Ret>) {
|
||||
return Boxed_Number(dispatch::dispatch(m_funcs, params, t_state)).get_as<Ret>();
|
||||
} else if constexpr (std::is_same_v<void, Ret>) {
|
||||
dispatch::dispatch(m_funcs, params, t_state);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user