Re: [Cython] C++ STL iteration bugs

2012-08-12 Thread mark florisson
On 12 August 2012 08:00, Robert Bradshaw wrote: > On Sat, Aug 11, 2012 at 1:19 PM, Stefan Behnel wrote: >> Hi, >> >> I ran into a couple of problems with the new C++ STL integration, just >> dumping them here for now. >> >> Invalid C code when using a stack allocated C++ vector inside of a >> gen

Re: [Cython] C++ STL iteration bugs

2012-08-12 Thread Stefan Behnel
Stefan Behnel, 12.08.2012 08:58: > On a somewhat related note, it would be nice to support > > for x in iter(c_ptr, end_value): > ... > > That would mostly be a generalisation of the special "ends with c'\0'" > special case of char* iteration, i.e. that would become equivalent to > >

Re: [Cython] C++ STL iteration bugs

2012-08-12 Thread Robert Bradshaw
On Sat, Aug 11, 2012 at 1:19 PM, Stefan Behnel wrote: > Hi, > > I ran into a couple of problems with the new C++ STL integration, just > dumping them here for now. > > Invalid C code when using a stack allocated C++ vector inside of a > generator, also lacking type conversion utility code: > > htt