I've been looking for a solution to my problem for a while but I can't seen to find anybody that may be trying to do exactly what I am (probably not a good thing)
I've embedded Python in my C program and am using boost.python for most of the binding.
I have a class which is totally in Python. It is passed to the C side of the program which is fine, I get a PyObject pointer which I can inspect and see that it knows it is of 'instance' type. The issue I am having now is I want to pass this instance, via a pure virtual function call back to python so other classes can access it.
Something like this:
void Update(float deltaTime, PyObject* gameObjects){ call_method<void>(self, "update", deltaTime, *gameObjects); }
However, when I try this I get the error:
Quote:TypeError: No to_python (by-value) converter found for C++ type: struct _object
Does anybody know what is going on? I really don't want to manipulate the python instance in C, all I want to do is just pass it along.
Thanks in advance