mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Fix returning of boolean values from functors
This commit is contained in:
parent
78cd980067
commit
021e2a7949
@ -81,7 +81,7 @@ namespace chaiscript
|
|||||||
|
|
||||||
Ret operator()(Param...param)
|
Ret operator()(Param...param)
|
||||||
{
|
{
|
||||||
return Function_Caller_Ret<Ret, std::is_arithmetic<Ret>::value>::call(m_funcs, {
|
return Function_Caller_Ret<Ret, std::is_arithmetic<Ret>::value && !std::is_same<Ret, bool>::value>::call(m_funcs, {
|
||||||
(std::is_reference<Param>::value&&!(std::is_same<chaiscript::Boxed_Value, typename std::remove_const<typename std::remove_reference<Param>::type>::type>::value))?Boxed_Value(std::ref(param)):Boxed_Value(param)...
|
(std::is_reference<Param>::value&&!(std::is_same<chaiscript::Boxed_Value, typename std::remove_const<typename std::remove_reference<Param>::type>::type>::value))?Boxed_Value(std::ref(param)):Boxed_Value(param)...
|
||||||
}, m_conversions
|
}, m_conversions
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user