fix small problem with smart_ptr + protected +fvirtual
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9dead7a11d
commit
ad892098e8
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class Allocate : public Dispatcher {
|
|||
// is, not the virtual method definition in a base class
|
||||
Setattr(c, "storage", "virtual");
|
||||
Setattr(c, "virtual:derived", "1");
|
||||
if (Strcmp(local_type, base_type) == 0) {
|
||||
if ((Strcmp(local_type, base_type) == 0) && is_public(c)) {
|
||||
// if the types are the same, then we can attemp
|
||||
// to eliminate the derived virtual method.
|
||||
if (virtual_elimination_mode) Setattr(c,"feature:ignore", "1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue