Commit Graph

6 Commits

Author SHA1 Message Date
Olly Betts 0b4496a735 Fix testsuite SWIG warnings; enable SWIG -Werror
SWIG/mzscheme (aka racket) is excluded for now as it currently has a lot
of testsuite warnings and is slated for removal in 4.4.0 anyway.

Closes #3034
2024-10-22 10:30:52 +13:00
William S Fulton feaabb0d2a template templated static methods support
Fix compilation errors in generated code when instantiating a templated
static method within a template (non-static methods and constructors were
always okay). For example:

  template <typename T> class X {
    template <class InputIterator>
      static void fn(InputIterator first, InputIterator last) { ... }
  };
  class SimpleIterator { ... };

  %extend X<int> {
    %template(fn) fn<SimpleIterator>;
  }

The problem being fixed here is an extended method was generated when it
should not have been as for other %template instantiations within a
template - the template can be called directly.

Test includes variadic static method templates in a template, including
method overloading..
2024-02-28 22:32:04 +00:00
William S Fulton c60734add6 Testcase fix for visual c++ 2024-02-10 15:57:28 +00:00
William S Fulton bee598ec91 Fix deprecated code in testcase 2024-02-10 09:19:20 +00:00
William S Fulton 293b9547a2 Add a variadic templated constructor in template test 2024-02-10 00:02:09 +00:00
William S Fulton c1258b89ae Fix assert handling template templated variadic methods
Closes #2794
2024-02-10 00:02:03 +00:00