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@9366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-09-26 07:52:24 +00:00
commit d0f40fc66e
3 changed files with 17 additions and 5 deletions

View file

@ -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)