I'm using ChaiScript (git revision 2662395cac662bc2980daa3197341e18b8793943, 2017-08-01, not sure what version it is, no VERSION file in the repo).
I try to call a C++ member function from Chai, and I get the following error:
terminate called after throwing an instance of 'chaiscript::exception::eval_error'
what(): Error: "Error with function dispatch for function 'call'" With parameters: (Environment).(const string, const Vector)
I have registered the class, its member functions, and the class' instance like this: https://github.com/kornerr/cpp-callback-script/blob/master/main.cpp#L14
The script is just a single line:
env.call("module", ["One", "Two"])
Any idea what I'm doing wrong?