Re: [C++-sig] Abstract class instances to-python conversion

2011-07-31 Thread Valentin Perrelle
Le 31/07/2011 07:38, Jim Bosch a écrit : I guess I don't really understand how your program flow is supposed to work - how did you plan to invoke C++ code from Python before importing your Boost.Python module? Usually the natural place to register converters is during module import after you'v

[C++-sig] Wrap std::vector

2011-07-31 Thread Simon W
>From my research it seems not very trivial to wrap std::vector that holds pointer types. For example: std::vector I've looked at boost python vector_index_suite but it just gives me the runtime error: > TypeError: No to_python (by-value) converter found for C++ type: > GameObject* I have a

Re: [C++-sig] Abstract class instances to-python conversion

2011-07-31 Thread Jim Bosch
On 07/31/2011 12:52 AM, Valentin Perrelle wrote: Le 31/07/2011 07:38, Jim Bosch a écrit : I guess I don't really understand how your program flow is supposed to work - how did you plan to invoke C++ code from Python before importing your Boost.Python module? Usually the natural place to register