add Bill's case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
66a8f6d05c
commit
9742e2ecca
1 changed files with 9 additions and 0 deletions
|
|
@ -20,9 +20,18 @@
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
struct X {
|
||||||
|
X(T t = T());
|
||||||
|
// and also:
|
||||||
|
X(double a, T t = T(0));
|
||||||
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%template(Hello_int) Hello<int>;
|
%template(Hello_int) Hello<int>;
|
||||||
|
%template(X_int) X<int>;
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue