Boost C++ Libraries: Ticket #8504: BOOST_PHOENIX_LIMIT can only be set to a multiple of 10 https://svn.boost.org/trac10/ticket/8504 <p> Hi, </p> <p> This ticket is a follow-up to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7165" title="#7165: Bugs: cannot change BOOST_PHOENIX_LIMIT (closed: fixed)">#7165</a>. </p> <p> The following code fails to compile </p> <pre class="wiki">#define BOOST_PHOENIX_LIMIT 9 #include &lt;boost/phoenix.hpp&gt; </pre><p> It also fails for 11 or any number different from 10, 20, 30, etc... but bear in mind that this error is largely hidden by <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7165" title="#7165: Bugs: cannot change BOOST_PHOENIX_LIMIT (closed: fixed)">#7165</a> : only after applying it does it become visible for numbers greater than 10. </p> <p> All in all it looks like the BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) logic in boost/phoenix/core/limits.hpp is partly flawed. </p> <p> I'll try and investigate ! </p> <p> Thanks, </p> <p> MAT. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8504 Trac 1.4.3 John Fletcher <J.P.Fletcher@…> Sun, 02 Feb 2014 17:09:17 GMT <link>https://svn.boost.org/trac10/ticket/8504#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8504#comment:1</guid> <description> <p> I have now fixed 7165 and 7166 using your patches and they are out for testing on develop. I assume that this still needs fixing. If you have any information please let me know. John </p> </description> <category>Ticket</category> </item> </channel> </rss>