Re: [C++-sig] RuntimeError(Pure virtual function called) when using iterator with abstract class

2010-05-17 Thread Stefan Seefeld
On 05/17/2010 09:41 AM, Mr Kun Hong wrote: class A { public: class Position { public: virtual ~Position() {}; virtual bool exists() const = 0; virtual int getId() const = 0; }; A::Position is thus an abstract base class. class PositionWrap :

[C++-sig] RuntimeError(Pure virtual function called) when using iterator with abstract class

2010-05-17 Thread Mr Kun Hong
Hi all, I am new to Booth Python. I am trying to make a python wrapper for one of my job's C++ library. But after reading the docs and related mailing list archive, I am still stucked. :( If any one can shed some light on me, it is greatly appreciated. Below is a simplified version of the libr

[C++-sig] RuntimeError(Pure virtual function called) when using iterator with abstract class

2010-05-17 Thread Mr Kun Hong
Hi all, I am new to Booth Python. I am trying to make a python wrapper for one of my job's C++ library. But after reading the docs and related mailing list archive, I am still stucked. :( If any one can shed some light on me, it is greatly appreciated. Below is a simplified version of the libra

Re: [C++-sig] Trouble converting data from numpy.array to c++

2010-05-17 Thread Ger van Diepen
Hi Jean-Charles, Sorry for answering a bit late. I was on vacation. I don't know an easier way. You can take from the code what you need and adapt it as needed. You could also look at Jim Bosch's tools he mentioned in a very recent posting. Cheers, Ger >>> QUILLET Jean-Charles 5/11/2