|
Re: NULL pointers and None type: msg#00185programming.swig
You need to change your declaration to class Iterator { public: Iterator(CObject *O); void Next(void); CObject * Obj; }; ie, you need to use pointer instead of references. This is not a swig constrain, it is a C++ one: when you use reference, you can't pass a null value, or you will get a seg. fault. Marcelo Alexander Tournier wrote: Hi, _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | NULL pointers and None type: 00185, Alexander Tournier |
|---|---|
| Next by Date: | Re: Swig + Python + C++ + overloading + None = SEGV.: 00185, Marcelo Matus |
| Previous by Thread: | NULL pointers and None typei: 00185, Alexander Tournier |
| Next by Thread: | Bug in typemaps?: 00185, Raghavendra Chandrashekara |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |