fix old std_pair version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
49f0823a25
commit
2537ee1c34
2 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@
|
||||||
return v[index];
|
return v[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
std::pair<int,int> pident(const std::pair<int,int>& p)
|
std::pair<int,double> pident(const std::pair<int,double>& p)
|
||||||
{
|
{
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ namespace std {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap_traits_ptr(SWIG_CCode(PAIR), std::pair<T,U >);
|
%typemap_traits(SWIG_CCode(PAIR), std::pair<T,U >);
|
||||||
|
|
||||||
T first;
|
T first;
|
||||||
U second;
|
U second;
|
||||||
|
|
@ -98,7 +98,7 @@ namespace std {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap_traits_ptr(SWIG_CCode(PAIR), std::pair<T,U* >);
|
%typemap_traits(SWIG_CCode(PAIR), std::pair<T,U* >);
|
||||||
|
|
||||||
T first;
|
T first;
|
||||||
U* second;
|
U* second;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue