[python] fix std unordered containers
This commit is contained in:
parent
e5add63548
commit
db8bc1c9c7
8 changed files with 126 additions and 51 deletions
|
|
@ -74,7 +74,7 @@
|
|||
}
|
||||
|
||||
%define %swig_unordered_multimap_methods(Type...)
|
||||
%swig_map_common(Type);
|
||||
%swig_unordered_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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue