You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using GCC 6, there's a cast error in the math module...
math.hpp: In instantiation of ‘chaiscript::ModulePtr chaiscript::extras::math::isinf(chaiscript::ModulePtr) [with Ret = bool; Param = double; chaiscript::ModulePtr = std::shared_ptr<chaiscript::Module>]’:
math.hpp:765:30: required from here
math.hpp:443:31: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘bool (*)(double)’
m->add(chaiscript::fun(static_cast<Ret (*)(Param)>(&std::isinf)), "isinf");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
math.hpp: In instantiation of ‘chaiscript::ModulePtr chaiscript::extras::math::isnan(chaiscript::ModulePtr) [with Ret = bool; Param = double; chaiscript::ModulePtr = std::shared_ptr<chaiscript::Module>]’:
math.hpp:769:30: required from here
math.hpp:450:31: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘bool (*)(double)’
m->add(chaiscript::fun(static_cast<Ret (*)(Param)>(&std::isnan)), "isnan");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Confirmed that it fixes the Math issue! Getting string_id failures because I didn't install the biicode dependencies, but that's my problem. Nicely done! 👍
Activity
lefticus commentedon Dec 1, 2017
I'm unable to reproduce this, but I believe that this should fix the issue without having to disable the functions altogether.
Can you test this version and see if it is fixed for you?
RobLoach commentedon Dec 1, 2017
Confirmed that it fixes the Math issue! Getting string_id failures because I didn't install the biicode dependencies, but that's my problem. Nicely done! 👍
Clever fix.