Boost C++ Libraries: Ticket #5376: Incorrect description for template parameters of handles_container https://svn.boost.org/trac10/ticket/5376 <p> <a href="http://www.boost.org/doc/libs/1_46_1/libs/spirit/doc/html/spirit/advanced/customize/handles_container.html">http://www.boost.org/doc/libs/1_46_1/libs/spirit/doc/html/spirit/advanced/customize/handles_container.html</a> says that the type of handles_container is as follows: </p> <div class="wiki-code"><div class="code"><pre><span class="k">template</span> <span class="o">&lt;</span><span class="k">typename</span> <span class="n">Component</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Attribute</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Enable</span><span class="o">&gt;</span> <span class="k">struct</span> <span class="n">handles_container</span> <span class="p">{</span> <span class="k">typedef</span> <span class="o">&lt;</span><span class="n">unspecified</span><span class="o">&gt;</span> <span class="n">type</span><span class="p">;</span> <span class="p">};</span> </pre></div></div><p> However, in boost/spirit/home/support/handles_container.hpp, it is defined as follows: </p> <div class="wiki-code"><div class="code"><pre> <span class="k">template</span> <span class="o">&lt;</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Attribute</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Context</span> <span class="p">,</span> <span class="k">typename</span> <span class="n">Iterator</span><span class="p">,</span> <span class="k">typename</span> <span class="n">Enable</span><span class="o">&gt;</span> <span class="k">struct</span> <span class="nl">handles_container</span> <span class="p">:</span> <span class="n">mpl</span><span class="o">::</span><span class="n">false_</span> <span class="p">{};</span> </pre></div></div><p> NOTE: Version field does not have 1.46.1, so I set it to 1.46.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5376 Trac 1.4.3 Joel de Guzman Sun, 27 Mar 2011 00:14:37 GMT owner changed https://svn.boost.org/trac10/ticket/5376#comment:1 https://svn.boost.org/trac10/ticket/5376#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Hartmut Kaiser</span> </li> </ul> Ticket Hartmut Kaiser Sun, 27 Mar 2011 01:59:42 GMT <link>https://svn.boost.org/trac10/ticket/5376#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5376#comment:2</guid> <description> <p> I'm sorry, but I don't understand your problem. In the example you give <code>handles_container&lt;&gt;</code> is implemented using meta function forwarding. The base type <code>mpl::false_</code> implements the embedded type <code>type</code>, therefore, we have no need to repeat that definition inside <code>handles_container&lt;&gt;</code>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 27 Mar 2011 03:01:41 GMT</pubDate> <title>severity changed https://svn.boost.org/trac10/ticket/5376#comment:3 https://svn.boost.org/trac10/ticket/5376#comment:3 <ul> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Cosmetic</span> </li> </ul> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5376#comment:2" title="Comment 2">hkaiser</a>: </p> <blockquote class="citation"> <p> I'm sorry, but I don't understand your problem. In the example you give <code>handles_container&lt;&gt;</code> is implemented using meta function forwarding. The base type <code>mpl::false_</code> implements the embedded type <code>type</code>, therefore, we have no need to repeat that definition inside <code>handles_container&lt;&gt;</code>. </p> </blockquote> <p> Just an inconsistency between documentation and implementation for template parameters. Documentation has 3 template parameters, Component, Attribute and Enable. On the other hand, implementation has 5 parameters, T, Attribute, Context, Iterator and Enable. </p> <p> This is off-topic issue: Is severity 'Cosmetic' better for documentation-related thing? </p> Ticket Hartmut Kaiser Sun, 27 Mar 2011 16:23:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5376#comment:4 https://svn.boost.org/trac10/ticket/5376#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/70638" title="Spirit: Fixed #5376: Incorrect description for template parameters of ...">[70638]</a>) Spirit: Fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5376" title="#5376: Bugs: Incorrect description for template parameters of handles_container (closed: fixed)">#5376</a>: Incorrect description for template parameters of handles_container </p> Ticket