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