Use SWIG_GE, SWIG_LE, etc instead of >=, <= since the latter cause
problems when used as template parameters. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a84b5110d7
commit
cf52954bbb
3 changed files with 17 additions and 5 deletions
|
|
@ -43,7 +43,8 @@ class X {};
|
|||
template<int foo> class X994301 {};
|
||||
%}
|
||||
|
||||
%template(X994301_ternary) X<(7 != 4) ? 1 + 1 : 1>;
|
||||
%template(X994301_ternary) X<(7 >= 4) ? 1 + 1 : 1>;
|
||||
%template(X994301_ternary2) X<(7 <= 4) ? 1 + 1 : 1>;
|
||||
|
||||
|
||||
// bug #1338527 (still broken)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue