Protected methods are skipped.

Bug #508577 reported by yak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyBindGen
Fix Released
Undecided
Unassigned

Bug Description

Consider this pure virtual class:

class Foo
{
public:
    virtual void Bar()=0;
protected:
    void Baz();
}

Currently pybindgen skips the Baz method, even while providing the helper class (when allow_subclassing=True). A Python subclass can provide an implementation for Bar but it won't be able to call Baz.

A viable solution would be to add a public trampoline method to the helper class. The method would ball Baz and it would be wrapped and made available to Python under the name Baz. Of course in such case it would be callable from anywhere but that's fine, it's like Python works after all.

Related branches

Gustavo Carneiro (gjc)
Changed in pybindgen:
status: New → Confirmed
Gustavo Carneiro (gjc)
Changed in pybindgen:
status: Confirmed → Fix Committed
Gustavo Carneiro (gjc)
Changed in pybindgen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.