Moving the director protected member support to the top level. Now it should works in all the languages. Test it.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2003-12-07 23:00:02 +00:00
commit 7bbbe3b274
8 changed files with 88 additions and 34 deletions

View file

@ -47,8 +47,6 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):.
CPP_TEST_BROKEN += \
array_typedef_memberin \
defvalue_constructor \
director_nested \
director_protected \
exception_order \
namespace_union \
smart_pointer_namespace2 \
@ -116,6 +114,8 @@ CPP_TEST_CASES += \
director_finalizer \
director_unroll \
director_wombat \
director_nested \
director_protected \
dynamic_cast \
enum_plus \
enum_scope \

View file

@ -47,14 +47,14 @@
}
virtual std::string do_step() = 0;
virtual std::string do_step() const = 0;
};
template <class C>
class FooBar : public Bar
{
public:
virtual C get_value() = 0;
virtual C get_value() const = 0;
};
%}

View file

@ -35,20 +35,20 @@ try:
except:
raise RuntimeError," bad FooBar::pong"
private=1
protected=1
try:
b.ping()
private=0
protected=0
except:
pass
if not private:
raise RuntimeError,"Boo::ping is private"
if not protected:
raise RuntimeError,"Boo::ping is protected"
private=1
protected=1
try:
f.ping()
private=0
protected=0
except:
pass
if not private:
raise RuntimeError,"Foo::ping is private"
if not protected:
raise RuntimeError,"Foo::ping is protected"