fixes for %templates/%rename/%features + templates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5a499c711f
commit
41b0a89cfb
6 changed files with 144 additions and 72 deletions
|
|
@ -5,7 +5,7 @@ d = template_rename.dFoo()
|
|||
|
||||
a = i.blah_test(4)
|
||||
b = i.spam_test(5)
|
||||
c = i.grok_test(6)
|
||||
c = i.groki_test(6)
|
||||
|
||||
x = d.blah_test(7)
|
||||
y = d.spam(8)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ d = Template_rename::DFoo.new
|
|||
|
||||
a = i.blah_test(4)
|
||||
b = i.spam_test(5)
|
||||
c = i.grok_test(6)
|
||||
c = i.groki_test(6)
|
||||
|
||||
x = d.blah_test(7)
|
||||
y = d.spam(8)
|
||||
|
|
|
|||
|
|
@ -22,3 +22,28 @@ public:
|
|||
%template(iFoo) Foo<int>;
|
||||
%template(dFoo) Foo<double>;
|
||||
|
||||
|
||||
// Testing ignore
|
||||
|
||||
%ignore std::vector<Flow>::vector(size_type);
|
||||
|
||||
%inline %{
|
||||
|
||||
namespace std {
|
||||
|
||||
template<class T> class vector {
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
vector() {}
|
||||
vector(size_type n) { T t = T(); }
|
||||
};
|
||||
}
|
||||
|
||||
class Flow {
|
||||
Flow() {}
|
||||
public:
|
||||
Flow(double d) {}
|
||||
};
|
||||
%}
|
||||
|
||||
%template(VectFlow) std::vector<Flow>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue