These are chat archives for ChaiScript/ChaiScript

Nov 2015
Nov 24 2015 00:34
Sandu Liviu Catalin
Nov 24 2015 17:37

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::

It seems that '*' after Vector3:: is removed by gitter. Perhaps mistaken with an emoticon.

Jason Turner
Nov 24 2015 18:18
looks like you're missing -std=c++11 or something
Sandu Liviu Catalin
Nov 24 2015 18:27

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.

Jason Turner
Nov 24 2015 18:43
Which documentation is incorrect?
oh wow, that's a VERY old version of fun<> I didn't even know that was still supported
in fact, that fun<> instantionation you are showing really shouldn't be working at all
Sandu Liviu Catalin
Nov 24 2015 18:49

I was using this:

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?

Jason Turner
Nov 24 2015 18:53
There, I just responded on discourse. I had no idea you were referencing a conversation from there. The question of overloads has come up several times and there are a few other discussions about how to handle it.