add missing %ignore resize, now it works
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8493e71751
commit
a8d68771ae
2 changed files with 8 additions and 7 deletions
|
|
@ -1,16 +1,17 @@
|
|||
%module ignore_template_constructor
|
||||
%include std_vector.i
|
||||
|
||||
%include <std_vector.i>
|
||||
%ignore std::vector<Flow>::vector(size_type);
|
||||
%ignore std::vector<Flow>::resize(size_type);
|
||||
|
||||
// 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() {}
|
||||
Flow() {}
|
||||
public:
|
||||
Flow(double d) {}
|
||||
Flow(double d) {}
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue