From: Dag Sverre Seljebotn <d.s.seljeb...@astro.uio.no>
Date: Thu, 13 Sep 2012 10:59:17 +0200
Local: Thurs, Sep 13 2012 4:59 am
Subject: Re: [cython-users] weird crash with cdef classes and C++ STL containers
On 09/13/2012 10:58 AM, Dag Sverre Seljebotn wrote:
> On 09/13/2012 07:26 AM, David Warde-Farley wrote:
In fact, once std::vector<pyptr> works really well, it should be rather >> On Thu, Sep 13, 2012 at 12:02 AM, Robert Bradshaw <rober...@gmail.com> >> wrote: >>> It's storing borrowed references, so it'll work as long as something
>> Indeed. I'm confused, though: in the example I've given, all 4 nodes
> If you want to do this, write an auto_ptr-like class, a class
> Then simply create std::vector<pyptr> rather than std::vector<PyObject*>.
> This *should* work, but to my knowledge there isn't any code available
easy to build it into Cython and support "std::vector<object>" as a syntax for it. Not volunteering though. Dag Sverre
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||