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:
Marcelo Matus 2004-10-05 22:49:02 +00:00
commit ad892098e8

View file

@ -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");