Re: [C++-sig] wrapping vector of pointers

2010-01-26 Thread Jim Bosch
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

Re: [C++-sig] Problem running the quickstart

2010-01-26 Thread Jim Bosch
On Tue, 2010-01-26 at 15:47 +0100, Daniel Lidström wrote: > error: Unable to find file or target named > error: 'test_extending.py' > error: referred from project at > error: '.' > > There does not seem to be a script by the name test_extending.py. Did I miss > something? > Thanks in adva

Re: [C++-sig] Please help: boost python 1.41 extension problem

2010-01-26 Thread lin yun
Wow, it worked like a magic!!! Thank you so much, Jim! On Mon, Jan 25, 2010 at 1:06 PM, Jim Bosch wrote: > On Mon, 2010-01-25 at 12:38 -0800, lin yun wrote: > > > I did not mention that I had no problem with Boost 1.34, on the same > > system. Also I ever tried Boost 1.34 and 1.37 on Fedora 7,

[C++-sig] Problem running the quickstart

2010-01-26 Thread Daniel Lidström
Hi, I have troubles compiling and running the quickstart: C:\Users\Daniel.SBG\Programming\boost_1_41_0\libs\python\example\quickstart>bjam toolset=msvc-9.0 --verbose-test test --debug -configuration notice: found boost-build.jam at C:\Users\Daniel.SBG\Programming\boost_1_41_0\libs\python\exampl

[C++-sig] wrapping vector of pointers

2010-01-26 Thread martin manduch
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