fix bug #1480074
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b319720cf1
commit
856e304379
2 changed files with 14 additions and 1 deletions
|
|
@ -52,4 +52,7 @@ std::map<int,A*> m_identa(const std::map<int,A*>& v)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
%template(mapii) map<int,int>;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,3 +46,13 @@ for k in pm:
|
||||||
if (pm[k] != m[k]):
|
if (pm[k] != m[k]):
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
mii = li_std_map.mapii()
|
||||||
|
|
||||||
|
mii[1] = 1
|
||||||
|
mii[1] = 2
|
||||||
|
|
||||||
|
if mii[1] != 2:
|
||||||
|
raise RuntimeError
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue