Boost C++ Libraries: Ticket #4304: [karma] uint_ doesn't compile with STLPort https://svn.boost.org/trac10/ticket/4304 <p> I get the following error: </p> <pre class="wiki">./boost/spirit/home/karma/numeric/uint.hpp:239: error: ‘! stlp_std::priv::_Integer_limits&lt;unsigned int, 0u, 4294967295u, -0x00000000000000001, true&gt;::is_signed’ is not a valid template argument for type ‘bool’ because it is a non-constant expression ./boost/spirit/home/karma/numeric/uint.hpp:239: error: no matching function for call to ‘assertion_failed(mpl_::failed************ (boost::spirit::karma::any_uint_generator&lt;unsigned int, boost::fusion::unused_type, boost::fusion::unused_type, 10u&gt;::signed_unsigned_mismatch::************)())’ </pre><p> The problem appears because operator! is used in context of a constant expression. While technically this is correct, it seems to confuse GCC. The attached patch solves the problem. </p> <p> PS: GCC 4.4.1, STLPort 5.2.1. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4304 Trac 1.4.3 Andrey Semashev Sun, 06 Jun 2010 14:25:30 GMT attachment set https://svn.boost.org/trac10/ticket/4304 https://svn.boost.org/trac10/ticket/4304 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">uint.diff</span> </li> </ul> <p> The patch solves the compilation problem. </p> Ticket anonymous Sun, 06 Jun 2010 14:33:23 GMT owner changed https://svn.boost.org/trac10/ticket/4304#comment:1 https://svn.boost.org/trac10/ticket/4304#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 Mon, 07 Jun 2010 11:18:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4304#comment:2 https://svn.boost.org/trac10/ticket/4304#comment:2 <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> Fixed in rev. <a class="changeset" href="https://svn.boost.org/trac10/changeset/62506" title="Spirit: fixed ticket #4304">[62506]</a> </p> Ticket