Forgotten commit from a few days ago. Tests template constructor and ignore (added to broken tests)

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-02-08 22:25:31 +00:00
commit 818bd43d03

View file

@ -0,0 +1,17 @@
%module ignore_template_constructor
%include <std_vector.i>
// Check common problem for vector wrappers - the default constructor is not available, so it must be ignored
//%feature("ignore") std::vector<Flow>::vector(size_type); // works
%ignore std::vector<Flow>::vector(size_type); // does not work
%inline %{
class Flow {
Flow() {}
public:
Flow(double d) {}
};
%}
%template(VectFlow) std::vector<Flow>;