Boost help please
REMOVEjimdon at sympatico.caREMOVE
Thu Mar 20 15:55:26 CET 2003
Cool that looks easy enough ... thank you ...
Ben Hutchings wrote:
> 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:
> return boost::python::make_tuple(
> 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