Boost C++ Libraries: Ticket #4224: Documentation: Mistakes in Examples https://svn.boost.org/trac10/ticket/4224 <p> Hello </p> <p> I've implemented a preprocessor for C++ and I used the boost preprocessor library for creating test cases to check if it can handle macro expansion correctly. While implementing these cases I came across tree minor mistakes in the documentation of the boost preprocessor library: </p> <ol><li>In the documentation of BOOST_PP_LIMIT_ITERATION_DIM (<a href="http://www.boost.org/doc/libs/1_42_0/libs/preprocessor/doc/ref/limit_iteration_dim.html">http://www.boost.org/doc/libs/1_42_0/libs/preprocessor/doc/ref/limit_iteration_dim.html</a>): The doc states that this macro expands to 5, but it actually expands to 3 </li><li>In the documentation of BOOST_PP_IIF (<a href="http://www.boost.org/doc/libs/1_42_0/libs/preprocessor/doc/ref/iif.html">http://www.boost.org/doc/libs/1_42_0/libs/preprocessor/doc/ref/iif.html</a>): In the sample code, a closing angle bracket is missing in the second include directive. </li><li>In the documentation of BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT (<a href="http://www.boost.org/doc/libs/1_42_0/libs/preprocessor/doc/ref/enum_params_with_defaults.html">http://www.boost.org/doc/libs/1_42_0/libs/preprocessor/doc/ref/enum_params_with_defaults.html</a>): In the sample code, "class" is missing before T0, T1 and T2 in the comment describing the expected result. </li></ol><p> The mistakes are the same for the documentation of version 1.42 as well as 1.43. </p> <p> Regards, Thomas </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4224 Trac 1.4.3 Steven Watanabe Sun, 23 May 2010 14:44:59 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4224#comment:1 https://svn.boost.org/trac10/ticket/4224#comment:1 <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/62165" title="Fix some minor documentation errors. Fixes #4224">[62165]</a>) Fix some minor documentation errors. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4224" title="#4224: Bugs: Documentation: Mistakes in Examples (closed: fixed)">#4224</a> </p> Ticket