From f52de8a8ec32aaf3a0d707e442dc08d8efb90fe3 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 8 Feb 2006 22:41:49 +0000 Subject: [PATCH] add missing %ignore resize, now it works git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8752 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/common.mk | 2 +- .../test-suite/ignore_template_constructor.i | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/SWIG/Examples/test-suite/common.mk b/SWIG/Examples/test-suite/common.mk index 5dedab0a9..e32671adf 100644 --- a/SWIG/Examples/test-suite/common.mk +++ b/SWIG/Examples/test-suite/common.mk @@ -49,7 +49,6 @@ LIBPREFIX = lib CPP_TEST_BROKEN += \ constants \ cpp_broken \ - ignore_template_constructor \ namespace_union \ nested_comment \ overload_complicated \ @@ -155,6 +154,7 @@ CPP_TEST_CASES += \ global_vars \ grouping \ ignore_parameter \ + ignore_template_constructor \ import_nomodule \ inherit \ inherit_missing \ diff --git a/SWIG/Examples/test-suite/ignore_template_constructor.i b/SWIG/Examples/test-suite/ignore_template_constructor.i index 2f7ffb221..5971f091f 100644 --- a/SWIG/Examples/test-suite/ignore_template_constructor.i +++ b/SWIG/Examples/test-suite/ignore_template_constructor.i @@ -1,16 +1,17 @@ %module ignore_template_constructor +%include std_vector.i -%include +%ignore std::vector::vector(size_type); +%ignore std::vector::resize(size_type); -// Check common problem for vector wrappers - the default constructor is not available, so it must be ignored -//%feature("ignore") std::vector::vector(size_type); // works -%ignore std::vector::vector(size_type); // does not work %inline %{ + + class Flow { - Flow() {} + Flow() {} public: - Flow(double d) {} + Flow(double d) {} }; %}