Re: [Cython] Add includes to generated header files

2012-08-11 Thread Jeff Copeland
On Thu, Aug 2, 2012 at 8:43 PM, Stefan Behnel wrote: > That sounds to me like we should make it a configurable option, something > like "capi_reexport_cincludes". Do mean as a command line option, or something else like a compiler directive? ___ cython-

Re: [Cython] Add includes to generated header files

2012-08-11 Thread Jeff Copeland
On Sat, Aug 11, 2012 at 10:27 AM, Jeff Copeland wrote: > On Thu, Aug 2, 2012 at 8:43 PM, Stefan Behnel wrote: >> That sounds to me like we should make it a configurable option, something >> like "capi_reexport_cincludes". > > Do mean as a command line option, or something else like a compiler dir

[Cython] C++ STL iteration bugs

2012-08-11 Thread Stefan Behnel
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: https://github.com/cython/cython/commit/d0a8e24720c3ed4e723b5a1b204bf3757

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

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 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