Boost help please
do-not-spam-ben.hutchings at businesswebsoftware.com
Thu Mar 20 15:30:57 CET 2003
In article <_fjea.3599$j5.16816 at news>, Jim wrote:
> I am switching some C++ code over to use boost ... but i am having some
> problems just getting things to compile ... the compile error is not
> very helpful so i'll leave it out for now ... the problem i think is
> more related to the fact i need return a structure from a boost function
> .... can anyone help ;-)
Assuming that you're using version 2 of Boost.Python, you should use the
tuple wrapper class.
I'm just a beginner with Boost.Python myself, but I think this should work:
Consider defining a new Python class/type to hold all these values, as
code that accesses the anonymous members of a large tuple can be quite
hard to read and maintain.
More information about the Python-list