add macro to disable the extra qualifications in members, which seems to be no standard and not supported in gcc4.1 or so

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-21 08:24:52 +00:00
commit 0b68b64c59
2 changed files with 47 additions and 8 deletions

View file

@ -7,7 +7,7 @@
%inline
%{
{
void globalscope(); // forward declaration needed for some compilers
@ -138,7 +138,8 @@
void bas() {}
void baz() {}
#if !defined(SWIG_NOEXTRA_QUALIFICATION)
namespace ns2 {
class Foo {
public:
@ -148,13 +149,24 @@
void Foo::member() { }
};
void bar() {}
void bar() {}
}
#else
namespace ns2 {
class Foo {
public:
Foo() {};
friend void bar();
friend void ns1::baz();
void member() { }
};
void bar() {}
}
#endif
}
%}
}
%template(D_i) D<int>;
%template(D_d) D<double>;