git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-05-04 06:47:31 +00:00
commit 856e304379
2 changed files with 14 additions and 1 deletions

View file

@ -52,4 +52,7 @@ std::map<int,A*> m_identa(const std::map<int,A*>& v)
namespace std
{
%template(mapii) map<int,int>;
}

View file

@ -46,3 +46,13 @@ for k in pm:
if (pm[k] != m[k]):
raise RuntimeError
mii = li_std_map.mapii()
mii[1] = 1
mii[1] = 2
if mii[1] != 2:
raise RuntimeError