add missing %ignore resize, now it works
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
80f615916e
commit
f52de8a8ec
2 changed files with 8 additions and 7 deletions
|
|
@ -49,7 +49,6 @@ LIBPREFIX = lib
|
||||||
CPP_TEST_BROKEN += \
|
CPP_TEST_BROKEN += \
|
||||||
constants \
|
constants \
|
||||||
cpp_broken \
|
cpp_broken \
|
||||||
ignore_template_constructor \
|
|
||||||
namespace_union \
|
namespace_union \
|
||||||
nested_comment \
|
nested_comment \
|
||||||
overload_complicated \
|
overload_complicated \
|
||||||
|
|
@ -155,6 +154,7 @@ CPP_TEST_CASES += \
|
||||||
global_vars \
|
global_vars \
|
||||||
grouping \
|
grouping \
|
||||||
ignore_parameter \
|
ignore_parameter \
|
||||||
|
ignore_template_constructor \
|
||||||
import_nomodule \
|
import_nomodule \
|
||||||
inherit \
|
inherit \
|
||||||
inherit_missing \
|
inherit_missing \
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,17 @@
|
||||||
%module ignore_template_constructor
|
%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 %{
|
%inline %{
|
||||||
|
|
||||||
|
|
||||||
class Flow {
|
class Flow {
|
||||||
Flow() {}
|
Flow() {}
|
||||||
public:
|
public:
|
||||||
Flow(double d) {}
|
Flow(double d) {}
|
||||||
};
|
};
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue