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:
parent
cccef3acff
commit
818bd43d03
1 changed files with 17 additions and 0 deletions
17
SWIG/Examples/test-suite/ignore_template_constructor.i
Normal file
17
SWIG/Examples/test-suite/ignore_template_constructor.i
Normal 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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue