cosmetic updates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6bfa1437bb
commit
af346e4e03
2 changed files with 10 additions and 1 deletions
|
|
@ -34,7 +34,16 @@
|
|||
namespace std {
|
||||
%template(CIntPair) pair<const int, const int>;
|
||||
%template() pair<double, double>;
|
||||
%template(ShortPair) pair<short, short>;
|
||||
|
||||
%template(IntPair) pair<int, int>;
|
||||
%extend pair<int, int>
|
||||
{
|
||||
%template(pair) pair<short,short>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
%template(SIPair) pair<std::string, int>;
|
||||
%template(CIPair) pair<std::complex<double>, int>;
|
||||
%template(SIIPair) pair<std::pair<std::string, int>, int>;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
from template_static import *
|
||||
|
||||
print Foo.bar_double(1)
|
||||
Foo.bar_double(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue