Bug 1498929: Access to member fields of map elements.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12643 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
11318bedff
commit
4b9ef9bc99
5 changed files with 36 additions and 1 deletions
20
Examples/test-suite/li_std_map_member.i
Normal file
20
Examples/test-suite/li_std_map_member.i
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
%module li_std_map_member
|
||||
|
||||
%inline %{
|
||||
int i;
|
||||
class TestA {
|
||||
public:
|
||||
TestA() { i = 1; }
|
||||
int i;
|
||||
};
|
||||
%}
|
||||
%include std_pair.i
|
||||
%include std_map.i
|
||||
|
||||
namespace std
|
||||
{
|
||||
%template(pairii) pair<int,int>;
|
||||
%template(mapii) map<int,int>;
|
||||
%template(pairita) pair<int,TestA>;
|
||||
%template(mapita) map<int,TestA>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue