Boost C++ Libraries: Ticket #9061: Incorrect usage of `long long` in Boost.Intrusive https://svn.boost.org/trac10/ticket/9061 <p> <code>boost/intrusive/detail/utilities.hpp</code> uses <code>long long</code> even on C++03/C++98 compilers, which do not have support that type: </p> <pre class="wiki">In file included from ../boost/intrusive/slist_hook.hpp:19, from ../boost/intrusive/slist.hpp:21, from ../boost/container/detail/multiallocation_chain.hpp:19, from ../boost/container/detail/allocator_version_traits.hpp:22, from ../boost/container/string.hpp:48, from ../libs/conversion/test/lexical_cast_containers_test.cpp:13: ../boost/intrusive/detail/utilities.hpp:435:41: warning: use of C99 long long integer constant In file included from ../boost/container/detail/utilities.hpp:28, from ../boost/container/string.hpp:42, from ../libs/conversion/test/lexical_cast_containers_test.cpp:13: ../boost/container/detail/type_traits.hpp:73: error: ISO C++ does not support 'long long' In file included from ../boost/intrusive/slist_hook.hpp:19, from ../boost/intrusive/slist.hpp:21, from ../boost/container/detail/multiallocation_chain.hpp:19, from ../boost/container/detail/allocator_version_traits.hpp:22, from ../boost/container/string.hpp:48, from ../libs/conversion/test/lexical_cast_containers_test.cpp:13: ../boost/intrusive/detail/utilities.hpp:562: error: ISO C++ does not support 'long long' </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9061 Trac 1.4.3 Ion Gaztañaga Sat, 07 Sep 2013 20:33:10 GMT <link>https://svn.boost.org/trac10/ticket/9061#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9061#comment:1</guid> <description> <p> Those uses are protected with BOOST_HAS_LONG_LONG, so I don't understand why is this macro active when compiling in strict ISO 98 mode. Maybe you are activating some -Wno-long-long and compiling warnings as errors? I don't think there is a fix for this, unless boost/config is modified to detect long long warning as error was activated by command line. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sun, 15 Sep 2013 19:31:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9061#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9061#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9061#comment:1" title="Comment 1">igaztanaga</a>: </p> <blockquote class="citation"> <p> Maybe you are activating some -Wno-long-long and compiling warnings as errors? </p> </blockquote> <p> You're right. I've become over pedantic and compiled code with -Wlong-long </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sun, 15 Sep 2013 19:33:18 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9061#comment:3 https://svn.boost.org/trac10/ticket/9061#comment:3 <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/85684" title="Do not treat long long warnings as errors in lexical_cast + containers ...">[85684]</a>) Do not treat long long warnings as errors in lexical_cast + containers tests (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9061" title="#9061: Bugs: Incorrect usage of `long long` in Boost.Intrusive (closed: fixed)">#9061</a>) </p> Ticket