How to handle protected destructor?
Asked by
John Pursey
I have a class like this:
class IFoo
{
public:
virtual void DoSomething() = 0;
protected:
virtual ~IFoo() {}
};
When I wrap this class, the generated code fails because IFoo's destructor is not accessible. I didn't see any parameters on the Module.add_class method or on CppClass which allows setting a destructor protection level. How can I work around this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gustavo Carneiro
- Solved:
- Last query:
- Last reply:
To post a message you must log in.