fix bug #1480074
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
553c551fef
commit
b319720cf1
2 changed files with 18 additions and 6 deletions
|
|
@ -66,7 +66,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
#define %swig_multimap_methods(Type...) %swig_map_methods(Type)
|
||||
%define %swig_multimap_methods(Type...)
|
||||
%swig_map_common(Type);
|
||||
%extend {
|
||||
void __setitem__(const key_type& key, const mapped_type& x) throw (std::out_of_range) {
|
||||
self->insert(Type::value_type(key,x));
|
||||
}
|
||||
}
|
||||
%enddef
|
||||
|
||||
%include <std/std_multimap.i>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue