fixed the problem with 'using' and protected mebers. now it seems to be safe to generate the protected members as protected again. all the test are running and the director_protected_runme.rb now test for the right access control

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5526 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2003-12-09 23:46:39 +00:00
commit f7e02f46fc
3 changed files with 33 additions and 22 deletions

View file

@ -21,14 +21,11 @@ public:
}
protected:
#if defined(SWIGPYTHON) || defined(SWIGRUBY) \
|| defined(SWIGJAVA) || defined(SWIGOCAML)
virtual std::string ping() = 0;
#else
virtual std::string ping() { return "";};
#endif
void hellom() {}
virtual void used() {}
};
class Bar : public Foo
@ -45,6 +42,8 @@ public:
int hello;
using Foo::used;
protected:
std::string ping() {
return "Bar::ping();";