Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60922 - trunk/libs/asio/doc
From: chris_at_[hidden]
Date: 2010-03-29 19:55:01


Author: chris_kohlhoff
Date: 2010-03-29 19:55:00 EDT (Mon, 29 Mar 2010)
New Revision: 60922
URL: http://svn.boost.org/trac/boost/changeset/60922

Log:
Work around an apparent doxygen bug to show template parameter lists on
inherited member functions.

Text files modified:
   trunk/libs/asio/doc/reference.xsl | 13 ++++++++++++-
   1 files changed, 12 insertions(+), 1 deletions(-)

Modified: trunk/libs/asio/doc/reference.xsl
==============================================================================
--- trunk/libs/asio/doc/reference.xsl (original)
+++ trunk/libs/asio/doc/reference.xsl 2010-03-29 19:55:00 EDT (Mon, 29 Mar 2010)
@@ -1205,7 +1205,18 @@
 
 <xsl:template name="function">
 <xsl:text>
-</xsl:text><xsl:apply-templates select="templateparamlist" mode="class-detail"/>
+</xsl:text>
+<xsl:variable name="doxygen-id">
+ <xsl:value-of select="@id"/>
+</xsl:variable>
+<xsl:choose>
+ <xsl:when test="count(/doxygen//memberdef[@id=$doxygen-id]/templateparamlist) = 1">
+ <xsl:apply-templates select="/doxygen//memberdef[@id=$doxygen-id]/templateparamlist" mode="class-detail"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="templateparamlist" mode="class-detail"/>
+ </xsl:otherwise>
+</xsl:choose>
 <xsl:text> </xsl:text><xsl:if test="@static='yes'">static </xsl:if><xsl:if
  test="string-length(type) > 0"><xsl:value-of select="type"/><xsl:text> </xsl:text></xsl:if>
 <xsl:value-of select="name"/>(<xsl:apply-templates select="param"


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