Fix Java shared_ptr and directors for derived classes java compilation error.

For shared_ptr proxy proxy classes, add a protected method swigSetCMemOwn for modifying
the swigCMemOwn and swigCMemOwnDerived member variables which are used by various other
methods for controlling memory ownership.

Closes #230
Closes #759
This commit is contained in:
William S Fulton 2017-05-23 20:56:15 +01:00
commit 4bf607589f
7 changed files with 138 additions and 6 deletions

View file

@ -44,7 +44,6 @@ public:
%include <boost_shared_ptr.i>
%shared_ptr(Foo)
%feature("director") Foo;
class FooBar {
@ -72,5 +71,12 @@ public:
static Foo* get_self(Foo *self_);
};
%shared_ptr(FooDerived)
%feature("director") FooDerived;
%inline %{
struct FooDerived : Foo {
};
%}
#endif