From: <ol...@us...> - 2007-04-18 16:24:49
|
Revision: 9683 http://swig.svn.sourceforge.net/swig/?rev=9683&view=rev Author: olly Date: 2007-04-18 09:24:46 -0700 (Wed, 18 Apr 2007) Log Message: ----------- SWIG does now support use of some constant expressions as template parameters so update the documentation. Modified Paths: -------------- trunk/Doc/Manual/SWIGPlus.html Modified: trunk/Doc/Manual/SWIGPlus.html =================================================================== --- trunk/Doc/Manual/SWIGPlus.html 2007-04-18 09:47:01 UTC (rev 9682) +++ trunk/Doc/Manual/SWIGPlus.html 2007-04-18 16:24:46 UTC (rev 9683) @@ -2816,14 +2816,17 @@ </div> <p> -There are some restrictions on the use of non-type arguments. Specifically, -they have to be simple literals and not expressions. For example: +There are some restrictions on the use of non-type arguments. Simple literals +are supported, and so are some constant expressions. However, use of '<' +and '>' within a constant expressions currently is not supported by SWIG +('<=' and '>=' are though). For example: </p> <div class="code"> <pre> -void bar(list<int,100> *x); // OK -void bar(list<int,2*50> *x); // Illegal +void bar(list<int,100> *x); // OK +void bar(list<int,2*50> *x); // OK +void bar(list<int,(2>1 ? 100 : 50)> *x) // Not supported </pre> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |