These are chat archives for ChaiScript/ChaiScript
I'm getting a bunch of " type_conversions.hpp|457|error: 'find_if' is not a member of 'std' " and it seems <algorithm> is not included.
And trying to register an overloaded member funtion in a module like: mod->add(fun< void (Vector3::)(float) >(&Vector3::Set), "set");
Generates the following error: callable_traits.hpp|99|error: 'operator()' is not a member of 'void (Vector3::)(float)'
It seems that '*' after Vector3:: is removed by gitter. Perhaps mistaken with an emoticon.
I actually have -std=c++14. But I was a bit lazy and trusted the documentation instead of looking at the code.
It's supposed to be: mod->add(fun< void, Vector3, float >(&Vector3::Set), "set");
I will update my topic on the forum.
fun<>I didn't even know that was still supported
fun<>instantionation you are showing really shouldn't be working at all
I was using this: http://chaiscript.com/docs/5/index.html#adding_items
And I just realized it's 5.6.0 in the title. Didn't even looked at that. My bad. Do I have to generate the recent documentation or is located somewhere else?