Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-04-28 02:55:02


Author: danieljames
Date: 2008-04-28 02:55:01 EDT (Mon, 28 Apr 2008)
New Revision: 44832
URL: http://svn.boost.org/trac/boost/changeset/44832

Log:
Add variadic attribute to template type parameters.

Text files modified:
   branches/doc/tools/boostbook/dtd/boostbook.dtd | 1 +
   branches/doc/tools/boostbook/xsl/template.xsl | 1 +
   2 files changed, 2 insertions(+), 0 deletions(-)

Modified: branches/doc/tools/boostbook/dtd/boostbook.dtd
==============================================================================
--- branches/doc/tools/boostbook/dtd/boostbook.dtd (original)
+++ branches/doc/tools/boostbook/dtd/boostbook.dtd 2008-04-28 02:55:01 EDT (Mon, 28 Apr 2008)
@@ -167,6 +167,7 @@
 <!ELEMENT template-type-parameter (default?, purpose?)>
 <!ATTLIST template-type-parameter
     name CDATA #REQUIRED
+ variadic CDATA #IMPLIED
     %boost.common.attrib;>
 
 <!ELEMENT template-nontype-parameter (type, default?, purpose?)>

Modified: branches/doc/tools/boostbook/xsl/template.xsl
==============================================================================
--- branches/doc/tools/boostbook/xsl/template.xsl (original)
+++ branches/doc/tools/boostbook/xsl/template.xsl 2008-04-28 02:55:01 EDT (Mon, 28 Apr 2008)
@@ -314,6 +314,7 @@
         <xsl:text>typename</xsl:text>
       </xsl:otherwise>
     </xsl:choose>
+ <xsl:if test="$parameter/@variadic"><xsl:text>...</xsl:text></xsl:if>
     <xsl:text> </xsl:text>
 
     <xsl:call-template name="template.parameter.name">


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk