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) {} }; %}