*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
91bb4b6aa7
commit
829b33da95
1 changed files with 16 additions and 2 deletions
|
|
@ -3,8 +3,22 @@ Version 1.3.25 (In progress)
|
||||||
|
|
||||||
03/31/2005: wsfulton
|
03/31/2005: wsfulton
|
||||||
Turned on extra template features previously only available to Python.
|
Turned on extra template features previously only available to Python.
|
||||||
Enables extra typemaps to be picked up when %template() is used without
|
This enables typemaps defined within a templated class to be used as
|
||||||
giving a template name.
|
expected. Requires %template on the templated class, %template() will
|
||||||
|
also pick up the typemaps. Example:
|
||||||
|
|
||||||
|
template <typename T> struct Foo {
|
||||||
|
...
|
||||||
|
%typemap(in) Foo "in typemap for Foo<T> "
|
||||||
|
or
|
||||||
|
%typemap(in) Foo<T> "in typemap for Foo<T> "
|
||||||
|
};
|
||||||
|
|
||||||
|
%template(Foo_i) Foo<int>;
|
||||||
|
%template() Foo<double>;
|
||||||
|
|
||||||
|
will generate the proper 'in' typemaps wherever Foo<int> and Foo<double>
|
||||||
|
are used.
|
||||||
|
|
||||||
03/30/2005: mkoeppe (Matthias Koeppe)
|
03/30/2005: mkoeppe (Matthias Koeppe)
|
||||||
[MzScheme] Patch from Hans Oesterholt for supporting MzScheme 30x.
|
[MzScheme] Patch from Hans Oesterholt for supporting MzScheme 30x.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue