Added constructor that can take functors to all
containers that can use one. Created file rubystdfunctors.swg to allow passing in Ruby procs as functors to STL functions (swig-user list suggestion for Python). Fixed a bug in type_info() always failing for std::set. Fixed a bug in type_info() always accepting any failed conversion which could lead to overloaded functions to fail when input wrong parameters. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f92ebdbe07
commit
1cf8fd332b
9 changed files with 186 additions and 14 deletions
|
|
@ -114,6 +114,8 @@ namespace std {
|
|||
|
||||
%typemap_traits_ptr(SWIG_TYPECHECK_MAP, std::map<_Key, _Tp, _Compare, _Alloc >);
|
||||
|
||||
map( const _Compare&, const _Alloc& a = allocator_type() );
|
||||
|
||||
#ifdef %swig_map_methods
|
||||
// Add swig/language extra methods
|
||||
%swig_map_methods(std::map<_Key, _Tp, _Compare, _Alloc >);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue