Boost C++ Libraries: Ticket #4281: BOOST_FUSION_DEFINE_TPL_STRUCT mismatch between doc and implementation/test https://svn.boost.org/trac10/ticket/4281 <p> The documentation page for BOOST_FUSION_DEFINE_TPL_STRUCT suggests to specify the list of namespaces before the list of template parameters, which looks to be in conflict with the test (test/sequence/define_tpl_struct.cpp) and the implementation, where the list of namespaces comes after the list of template parameters. I.e., the doc contains: </p> <hr /> <p> BOOST_FUSION_DEFINE_TPL_STRUCT( </p> <blockquote> <p> (namespace0)(namespace1)..., (template_param0)(template_param1)..., struct_name, (member_type0, member_name0) (member_type1, member_name1) ... ) </p> </blockquote> <p> [snip] <em> Any instantiated demo::employee is a Fusion sequence BOOST_FUSION_DEFINE_TPL_STRUCT( </em></p> <blockquote> <p> (demo), (Name)(Age), employee, (Name, name) (Age, age)) </p> </blockquote> <hr /> <p> Whereas the test contains: </p> <hr /> <p> BOOST_FUSION_DEFINE_TPL_STRUCT( </p> <blockquote> <p> (X)(Y), (ns), point, (X, x) (Y, y) </p> </blockquote> <p> ) </p> <hr /> <p> BOOST_FUSION_DEFINE_ASSOC_TPL_STRUCT suffers from the same problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4281 Trac 1.4.3 Christopher Schmidt Thu, 03 Jun 2010 07:55:24 GMT cc, owner, status changed https://svn.boost.org/trac10/ticket/4281#comment:1 https://svn.boost.org/trac10/ticket/4281#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">v_gevorg@…</span> <span class="trac-author">Christopher Schmidt</span> <span class="trac-author">mr.chr.schmidt@…</span> added; <span class="trac-author">v_gevorg@…</span> removed </li> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Christopher Schmidt</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Thanks for the report. I'll commit a fix ASAP. </p> Ticket Christopher Schmidt Thu, 03 Jun 2010 08:29:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4281#comment:2 https://svn.boost.org/trac10/ticket/4281#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/62398" title="documentation update - fixes #4281">[62398]</a>) documentation update - fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4281" title="#4281: Bugs: BOOST_FUSION_DEFINE_TPL_STRUCT mismatch between doc and implementation/test (closed: fixed)">#4281</a> </p> Ticket Christopher Schmidt Thu, 03 Jun 2010 08:30:51 GMT cc changed https://svn.boost.org/trac10/ticket/4281#comment:3 https://svn.boost.org/trac10/ticket/4281#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">mr.chr.schmidt@…</span> removed </li> </ul> Ticket