Commit Graph

3 Commits

Author SHA1 Message Date
William S Fulton ce06e2fc13 Advanced %rename fixes for templates
It is now possible to use %rename
on instantiated templates for various corner cases, see "Template renaming"
section in SWIGPlus.html. For example, it is now possible to selectively rename
overloaded templated functions. The full power of %rename (such as using regex)
can now be used on templates.

Example fix using %rename on templates:
  namespace Quirky {
    template<typename T> void funky() {}
  }
  %rename("%s_void") Quirky::funky<int>();
  %template(funky_int) Quirky::funky<int>;
Will now generate funky_void() where previously there there was no wrapper, just
a warning:
    Warning 503: Can't wrap 'funky< int >_void' unless renamed to a valid identifier.
2026-04-24 22:56:50 +01:00
William S Fulton d74b680a79 Fix %template seg fault on some cases of overloading the templated method.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11582 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 10:40:19 +00:00
William S Fulton 3fd28bf45c Correct behaviour for templated methods used with %rename or %ignore and %template()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-17 20:42:19 +00:00