Fixes to std_map and multimap. There's still a problem
of const correctness in the std swig STL library. Need to bring it up in the swig-devel list. Added new functions to swig_assert. Changed some tests to reflect these changes. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b72d6a93af
commit
a100f16bbd
22 changed files with 366 additions and 135 deletions
|
|
@ -91,7 +91,8 @@
|
|||
}
|
||||
} else {
|
||||
value_type *p;
|
||||
res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<value_type>(),0);
|
||||
res = SWIG_ConvertPtr(obj,(void**)&p,
|
||||
swig::type_info<value_type>(),0);
|
||||
if (SWIG_IsOK(res) && val) *val = p;
|
||||
}
|
||||
return res;
|
||||
|
|
@ -146,8 +147,9 @@
|
|||
|
||||
|
||||
%define %swig_pair_methods(pair...)
|
||||
|
||||
%extend {
|
||||
VALUE inspect()
|
||||
VALUE inspect() const
|
||||
{
|
||||
VALUE tmp;
|
||||
VALUE str = rb_str_new2( swig::type_name< pair >() );
|
||||
|
|
@ -163,7 +165,7 @@
|
|||
return str;
|
||||
}
|
||||
|
||||
VALUE to_s()
|
||||
VALUE to_s() const
|
||||
{
|
||||
VALUE tmp;
|
||||
VALUE str = rb_str_new2( "(" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue