I know in other posts it was suggested to not using raw arrays or pointers, but you also hinted that it might be possible.
I have the following example C++ code that I would like to script using Chai:
void sendMessage(const message_content& msg)
// encodes and sends the message
From my chai scripts I would like to be able to create and fill in a message_content struct and then call sendMessage(). (I will have a whole series of structs, senders and receiver functions that will form an automated test system).
At the moment the following code does not work for me:
The last line fails to compile due to the std::ref() being created to an array @ handle_return.cpp(110).
Is there any sort of work around that will enable this sort of usecase. Unfortunately I don’t have any control over the structures that I am mapping as they are auto-generated from an interface definition system.
Thanks for the awesome project by the way. I was able to get a program up and running within about 10 mins including passing data back and forth between C++ and ChaiScript.