On 30.04.2010 07:48, Roman Yakovenko wrote:
On Thu, Apr 29, 2010 at 11:57 PM, Maciej Sitarz<macieksit...@wp.pl>  wrote:
Problem... as always when there's not enough knowledge:

I got the warning:

WARNING: boost::tuples::null_type [struct]

You don't need to expose boost.tuple. This is why you define custom converter.

Compilation went successfully, but I can't import the module. I'm getting an
error:

python:
/home/macieks/boost/boost_1_42_0/libs/python/src/converter/registry.cpp:212:
void boost::python::converter::registry::insert(PyObject* (*)(const void*),
boost::python::type_info, const PyTypeObject* (*)()): Assertion
`slot->m_to_python == 0' failed.
Aborted

This is a first time I see such error. Try to comment out pieces of
the generated code to find out what cause it.

that was because I included the boost::tuple to be exposed. Now it's ok.

I'll now try to include this solution into my production code :)
I'm looking for forward too test the automatic boost::tuple support in py++.

Great thanks for quick and comprehensive help Roman.

Best regards
--
Maciek Sitarz
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to