fixes for %templates/%rename/%features + templates

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-05 20:25:43 +00:00
commit 01893da18e
6 changed files with 144 additions and 72 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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>;