From 2a9bdaaf3bbb2b59aff8314e4652dca70a4a8826 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 3 Nov 2004 01:09:36 +0000 Subject: [PATCH] CHANGES.current git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6637 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/CHANGES.current | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/SWIG/CHANGES.current b/SWIG/CHANGES.current index 21a581d57..ad6bc8d78 100644 --- a/SWIG/CHANGES.current +++ b/SWIG/CHANGES.current @@ -1,6 +1,44 @@ Version 1.3.23 (November 6, 2004) ================================= +10/2/2004: mmatus + + - More fixes for namespace + class declarations. + As an extra bonus, we get %template support for static/members class + methods, ie, now you can say: + + namespace space { + struct A + { + template + static void fooT(Y y) { } + }; + } + + struct B + { + template + void barT(Y y) {} + }; + + %template(foo) space::A::fooT; + %template(foo) space::A::fooT; + %template(foo) space::A::fooT; + + %template(foo) B::barT; + %template(foo) B::barT; + %template(foo) B::barT; + + and call + + A.foo(1) + b = B() + b.bar(1) + + note the the methods are emitted inside the classes, + and hence, the %template name refers to the 'member' + method name, not a global namespace name. + 10/31/2004: mmatus - Solve namespace + class declarations, as in