On Tue, 2010-01-26 at 13:36 +0100, martin manduch wrote:
>
> I want to make XVec responsible for memory, which is addressed through
> pointers, but I don't know how.
>
That would be difficult, especially because you can't really subclass
std::vector in a safe way.
>
> I need to wrap vector of
Hi,
I need to wrap vector of pointers, because it's parameter in one function...
I have following code:
struct X
{
X(int nn) {n=nn;}
int n;
};
BOOST_PYTHON_MODULE(myVector)
{
class_("X", init())
.def_readwrite("n", &X::n);
class_ >("XVec")
.def(vector_indexing_sui