Allow templates to be instantiated using negative numbers and constant
expressions (which fixes SF bug #956282 and several others). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
aadfee78ac
commit
916a265191
3 changed files with 47 additions and 43 deletions
|
|
@ -1,6 +1,14 @@
|
|||
Version 1.3.30 (in progress)
|
||||
============================
|
||||
|
||||
09/20/2006: olly
|
||||
[ALL] Templates can now be instantiated using negative numbers and
|
||||
constant expressions, e.g.:
|
||||
|
||||
template<int q> class x {};
|
||||
%template(x_minus1) x<-1>;
|
||||
%template(x_1plus2) x<1+2>;
|
||||
|
||||
09/20/2006: olly
|
||||
[ALL] Treat a nested class definition as a forward declaration rather
|
||||
than ignoring it completely, so that we generate correct code for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue