Boost C++ Libraries: Ticket #1503: typeof bug (big integral constant) https://svn.boost.org/trac10/ticket/1503 <p> Following small piece of code demonstrate problem: </p> <pre class="wiki">#include &lt;boost/typeof/typeof.hpp&gt; int main() { const BOOST_AUTO(uid_mask, 0xFFFFFFFFFFL); // # sutation 1 const BOOST_AUTO(type_id_mask, 0xFFFF); const BOOST_AUTO(res_id_mask, 0xFF); return 0; } </pre><p> BOOST_AUTO macro produce wrong type 'long', but in situation # 1, it shall produce 'long long' type instead. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1503 Trac 1.4.3 sk@… Thu, 06 Dec 2007 15:51:09 GMT <link>https://svn.boost.org/trac10/ticket/1503#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1503#comment:1</guid> <description> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1503" title="#1503: Bugs: typeof bug (big integral constant) (closed: fixed)">Viper Craft</a>: </p> <blockquote class="citation"> <p> Following small piece of code demonstrate problem: </p> <pre class="wiki">#include &lt;boost/typeof/typeof.hpp&gt; int main() { const BOOST_AUTO(uid_mask, 0xFFFFFFFFFFL); // # sutation 1 const BOOST_AUTO(type_id_mask, 0xFFFF); const BOOST_AUTO(res_id_mask, 0xFF); return 0; } </pre><p> BOOST_AUTO macro produce wrong type 'long', but in situation # 1, it shall produce 'long long' type instead. </p> </blockquote> <p> Resolved, g++ accept LL postfix for 'long long' types. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peder Holt</dc:creator> <pubDate>Sat, 26 Jan 2008 18:51:04 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1503#comment:2 https://svn.boost.org/trac10/ticket/1503#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 user code. </p> Ticket