Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-02-26 17:58:35

You need to be sure you have declared the class_builder<vector<int> > before
you try to def() the function which returns the vector<int>. The declaration
of the class_builder<vector<int> > is actually what generates the function
    PyObject* to_python(const vector<int>&)
which is used to convert the return value to a python object.

----- Original Message -----
From: "Marc Paterno" <paterno_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, February 26, 2001 9:59 AM
Subject: [boost] BPL: How to return a vector to Python?

> Hello,
> I'm trying to use BPL to wrap a class that has a method which
> returns a std::vector<int>. I've read through the documentation,
> and played around some, without success. Can someone point me to
> the correct piece of documentation, or an example, of such a thing?
> Thanks very much.
> best regards,
> Marc Paterno
> Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at