Boost C++ Libraries: Ticket #7673: BOOST_RATIO_STATIC_ASSERT: constant "X" is not a type name https://svn.boost.org/trac10/ticket/7673 <p> Whily compiling a code with icc that uses boost, I get this error: </p> <pre class="wiki">/home/ac/sroy8/boost_1_52_0/boost/ratio/detail/overflow_helpers.hpp(77): error: constant "X" is not a type name BOOST_RATIO_STATIC_ASSERT(X &lt;= max - Y , BOOST_RATIO_OVERFLOW_IN_ADD, ()); ^ </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7673 Trac 1.4.3 viboes Sat, 01 Dec 2012 22:38:43 GMT status, severity, description, milestone changed https://svn.boost.org/trac10/ticket/7673#comment:1 https://svn.boost.org/trac10/ticket/7673#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/7673?action=diff&amp;version=1">diff</a>) </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.52.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> Well X is defined as a parameter </p> <pre class="wiki"> template &lt;boost::intmax_t X, boost::intmax_t Y&gt; class br_add&lt;X, Y, 1&gt; { static const boost::intmax_t min = boost::integer_traits&lt;boost::intmax_t&gt;::const_min; static const boost::intmax_t max = boost::integer_traits&lt;boost::intmax_t&gt;::const_max; BOOST_RATIO_STATIC_ASSERT(X &lt;= max - Y , BOOST_RATIO_OVERFLOW_IN_ADD, ()); public: static const boost::intmax_t value = X + Y; }; </pre><p> I don't know how to fix this other than commenting the line for your compiler. Patches are welcome. Please provide the explicit compiler version. </p> Ticket viboes Sat, 08 Dec 2012 16:13:11 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7673#comment:2 https://svn.boost.org/trac10/ticket/7673#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">wontfix</span> </li> </ul> Ticket