Re: [Cython] C++ STL iteration bugs

2012-08-20 Thread Stefan Behnel
Stefan Behnel, 20.08.2012 20:55: > Robert Bradshaw, 12.08.2012 09:00: >> On Sat, Aug 11, 2012 at 1:19 PM, Stefan Behnel wrote: >>> 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 ins

Re: [Cython] C++ STL iteration bugs

2012-08-20 Thread Stefan Behnel
Robert Bradshaw, 12.08.2012 09:00: > On Sat, Aug 11, 2012 at 1:19 PM, Stefan Behnel wrote: >> 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

Re: [Cython] C++ STL iteration bugs

2012-08-13 Thread mark florisson
On 13 August 2012 16:42, Robert Bradshaw wrote: > On Sun, Aug 12, 2012 at 3:26 AM, mark florisson > wrote: >> 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 integra

Re: [Cython] C++ STL iteration bugs

2012-08-13 Thread Robert Bradshaw
On Sun, Aug 12, 2012 at 3:26 AM, mark florisson wrote: > 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

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

Re: [Cython] C++ STL iteration bugs

2012-08-11 Thread Stefan Behnel
Robert Bradshaw, 12.08.2012 07:12: > On Sat, Aug 11, 2012 at 10:03 PM, Robert Bradshaw wrote: >> On Sat, Aug 11, 2012 at 1:19 PM, Stefan Behnel wrote: >>> I ran into a couple of problems with the new C++ STL integration, just >>> dumping them here for now. >>> >>> Failure to compile iteration over

Re: [Cython] C++ STL iteration bugs

2012-08-11 Thread Robert Bradshaw
On Sat, Aug 11, 2012 at 10:03 PM, 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

Re: [Cython] C++ STL iteration bugs

2012-08-11 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