Re: methodname ref to overloaded operator
Daniel James <[email protected]>
| Newsgroups | gmane.comp.lib.boost.documentation |
|---|---|
| Message-ID | <CAHOE3ydDwgaKNADPnHF4O1nvxpo_Fb3XvC7ws20n3=aiJpKXjQ@mail.gmail.com> |
On 21 July 2012 20:59, Eric Niebler <[email protected]> wrote: > Here's a very small work item for an XSLT hacker with a little time to > kill. (He says wishfully.) I can't refer to an overloaded operator. If > put this in a boostbook xml file: > > <methodname>proto::functional::as_env::operator()</methodname> A test case would help. Try the attached, it's untested. _______________________________________________ Boost-docs mailing list [email protected] http://lists.boost.org/mailman/listinfo.cgi/boost-docs
operator.patch
(application/octet-stream, 572 B)
diff --git a/tools/boostbook/xsl/annotation.xsl b/tools/boostbook/xsl/annotation.xsl
index ff847d3..b843f02 100644
--- a/tools/boostbook/xsl/annotation.xsl
+++ b/tools/boostbook/xsl/annotation.xsl
@@ -116,6 +116,9 @@
<!-- Strip off any call -->
<xsl:variable name="name">
<xsl:choose>
+ <xsl:when test="contains($fullname, 'operator()')">
+ <xsl:value-of select="$fullname"/>
+ </xsl:when>
<xsl:when test="contains($fullname, '(')">
<xsl:value-of select="substring-before($fullname, '(')"/>
</xsl:when>