Boost C++ Libraries: Ticket #1206: Document escaping from within code. https://svn.boost.org/trac10/ticket/1206 <p> John: </p> <p> Just another data point: escaping to <a class="missing wiki">BoostBook</a> from within code doesn't work unless the escape is inside a macro: </p> <p> template &lt;class T&gt; struct function_traits { </p> <blockquote> <p> static const std::size_t arity = <span class="underline">below; typedef </span>below result_type; typedef <span class="underline">below <strong>arg&lt;replaceable&gt;N&lt;/replaceable&gt;_type</strong>; </span></p> </blockquote> <p> }; </p> <p> Does *not* process the escape, whereas: </p> <p> [def <span class="underline">argN <strong>arg&lt;replaceable&gt;N&lt;/replaceable&gt;_type</strong>] template &lt;class T&gt; struct function_traits { </span></p> <blockquote> <p> static const std::size_t arity = <span class="underline">below; typedef </span>below result_type; typedef <span class="underline">below </span>argN; </p> </blockquote> <p> }; </p> <p> Does process the escape. Took me a while to figure this out </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1206 Trac 1.4.3 Daniel James Sun, 22 Mar 2009 15:59:30 GMT summary changed https://svn.boost.org/trac10/ticket/1206#comment:1 https://svn.boost.org/trac10/ticket/1206#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Escaping from within code?</span> → <span class="trac-field-new">Document escaping from within code.</span> </li> </ul> <p> From the <a class="ext-link" href="http://article.gmane.org/gmane.comp.lib.boost.documentation/1055"><span class="icon">​</span>original email</a> with the formatting corrected: </p> <p> John: </p> <blockquote> <p> Just another data point: escaping to BoostBook from within code doesn't work unless the escape is inside a macro: </p> </blockquote> <pre class="wiki">template &lt;class T&gt; struct function_traits { static const std::size_t arity = __below; typedef __below result_type; typedef __below '''arg&lt;replaceable&gt;N&lt;/replaceable&gt;_type'''; }; </pre><blockquote> <p> Does <strong>not</strong> process the escape, whereas: </p> </blockquote> <pre class="wiki">[def __argN '''arg&lt;replaceable&gt;N&lt;/replaceable&gt;_type'''] template &lt;class T&gt; struct function_traits { static const std::size_t arity = __below; typedef __below result_type; typedef __below __argN; }; </pre><blockquote> <p> Does process the escape. Took me a while to figure this out :-( </p> </blockquote> Ticket Joel de Guzman Wed, 09 Apr 2014 02:18:11 GMT owner changed https://svn.boost.org/trac10/ticket/1206#comment:2 https://svn.boost.org/trac10/ticket/1206#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Daniel James</span> </li> </ul> Ticket