I removed everything except int health and I still crash. If I do not
have the explicit to_python converter I receive this error message:
TypeError: No to_python (by-value) converter found for C++ type: Unit

On Tue, Apr 3, 2012 at 11:20 AM, Stefan Seefeld <ste...@seefeld.name> wrote:
> DarkAnt,
>
> have you tried taking out the explicit to_python converter ? I don't
> think you need that, as the class_<Unit> will already implicitly provide
> that.
> Also, out of curiosity: I'm not sure the "coord" member conversion will
> work out-of-the-box, unless you also reflect std::pair<int,int> to
> Python using class_<> or a converter.
>
>    Stefan
>
> --
>
>      ...ich hab' noch einen Koffer in Berlin...
>
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to