Boost C++ Libraries: Ticket #2761: Array::static_size needs to be cast to int in adapted array_iterator.hpp https://svn.boost.org/trac10/ticket/2761 <p> The line: </p> <p> BOOST_MPL_ASSERT_RELATION(Pos, &lt;=, Array::static_size); </p> <p> Can cause: </p> <p> /boost/boost/fusion/adapted/array/array_iterator.hpp:29: error: 'boost::array&lt;ame::patterns::normal_model_state, 12ul&gt;::&lt;anonymous enum&gt;' is/uses anonymous type /boost/boost/fusion/adapted/array/array_iterator.hpp:29: error: trying to instantiate 'template&lt;class Seq1, class Seq2&gt; struct boost::fusion::detail::enable_comparison' </p> <p> Casting Array::static_size to int solves the problem. See: <a class="ext-link" href="http://www.nabble.com/-fusion--mpl--array--making-boost-array-a-conforming-mpl-sequence-(through-fusion)-td21940889.html"><span class="icon">​</span>http://www.nabble.com/-fusion--mpl--array--making-boost-array-a-conforming-mpl-sequence-(through-fusion)-td21940889.html</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2761 Trac 1.4.3 Steven Watanabe Sun, 13 Jun 2010 03:06:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2761#comment:1 https://svn.boost.org/trac10/ticket/2761#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/62893" title="Explicitly cast array::static_size to an int. Fixes #2761">[62893]</a>) Explicitly cast array::static_size to an int. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2761" title="#2761: Bugs: Array::static_size needs to be cast to int in adapted array_iterator.hpp (closed: fixed)">#2761</a> </p> Ticket