Improved algorithm of renaming of methods with numbers at the end.
Fixed some const issues. Improved report on overloaded function error. Fixed some minor iterator potential problems. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e90e28acfc
commit
4cd98d3865
13 changed files with 96 additions and 26 deletions
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
template <class T>
|
||||
struct traits_asptr<std::set<T> > {
|
||||
static int asptr(VALUE obj, std::set<T> **s) {
|
||||
static int asptr(VALUE obj, std::set<T> **s) {
|
||||
return traits_asptr_stdseq<std::set<T> >::asptr(obj, s);
|
||||
}
|
||||
};
|
||||
|
|
@ -40,13 +40,13 @@
|
|||
|
||||
%extend {
|
||||
%alias push "<<";
|
||||
value_type push(value_type x) {
|
||||
value_type push(const value_type& x) {
|
||||
self->insert(x);
|
||||
return x;
|
||||
}
|
||||
|
||||
%rename("include?") __contains__;
|
||||
bool __contains__(value_type x) {
|
||||
bool __contains__(const value_type& x) {
|
||||
return self->find(x) != self->end();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue