Re: [C++-sig] help on abstract class export

2011-04-29 Thread Jakub Zytka
On 04/29/11 09:14, zeb wrote: mb.free_fun('createWorker').call_policies = call_policies.return_value_policy(call_policies.return_pointee_value) you do not want to have *value* of an abstract class. I found that if the IWorker class is not abstract, for example: class IWorker { public:

Re: [C++-sig] help on abstract class export

2011-04-29 Thread zeb
Thank you very much. It works! -- View this message in context: http://boost.2283326.n4.nabble.com/help-on-abstract-class-export-tp3483090p3483251.html Sent from the Python - c++-sig mailing list archive at Nabble.com. ___ Cplusplus-sig mailing list Cpl

Re: [C++-sig] help on abstract class export

2011-04-29 Thread Roman Yakovenko
On Fri, Apr 29, 2011 at 10:14 AM, zeb wrote: > Hi, I'm trying to export the following code to python, but failed. Please > help me! > Here is the code: > -- > c++ code: > -- > class IWorker { > public: >        virtual int getData() = 0; > }; > > class Worker : public IWork

[C++-sig] help on abstract class export

2011-04-29 Thread zeb
Hi, I'm trying to export the following code to python, but failed. Please help me! Here is the code: -- c++ code: -- class IWorker { public: virtual int getData() = 0; }; class Worker : public IWorker { public: int getData() { return 100;