fix friend bug #1323114
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7670 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
08e81e1a7f
commit
f62b5ed28f
2 changed files with 23 additions and 2 deletions
|
|
@ -132,6 +132,28 @@
|
|||
private:
|
||||
C val;
|
||||
};
|
||||
|
||||
namespace ns1 {
|
||||
|
||||
void bas() {}
|
||||
|
||||
void baz() {}
|
||||
|
||||
namespace ns2 {
|
||||
class Foo {
|
||||
public:
|
||||
Foo::Foo() {};
|
||||
friend void bar();
|
||||
friend void ns1::baz();
|
||||
void Foo::member() { }
|
||||
|
||||
};
|
||||
void bar() {}
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
%}
|
||||
|
||||
%template(D_i) D<int>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue