Boost C++ Libraries: Ticket #12048: Deprecated libstdc++ header used in adjacency_list.hpp https://svn.boost.org/trac10/ticket/12048 <p> Hi I'm using the reverse cuthill-mckee library to reorder some matrices... </p> <p> Anyhow I keep getting the following error: </p> <p> In file included from /usr/include/c++/4.4.7/backward/hash_set(60), </p> <blockquote> <p> from /usr/include/boost/graph/adjacency_list.hpp(25), from main.cpp(6): </p> </blockquote> <p> /usr/include/c++/4.4.7/backward/backward_warning.h(28): warning <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1224" title="#1224: Feature Requests: MPL compatibilty for Integer Type Selection Templates (closed: obsolete)">#1224</a>: #warning directive: This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. </p> <blockquote> <p> #warning \ </p> </blockquote> <p> Obviously if I use -Wno-deprecated this goes away but is there a fix I am using Boost 1.59.0 </p> <p> Thanks, Friedrich Grabner </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12048 Trac 1.4.3 Murray Cumming <murrayc@…> Wed, 04 May 2016 07:53:33 GMT <link>https://svn.boost.org/trac10/ticket/12048#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12048#comment:1</guid> <description> <p> Doesn't it give some clue about which header it is complaining about. </p> <p> Presumably it's one of these: <a class="ext-link" href="https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-api-4.6/a00765_source.html"><span class="icon">​</span>https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-api-4.6/a00765_source.html</a> </p> </description> <category>Ticket</category> </item> <item> <author>Murray Cumming <murrayc@…></author> <pubDate>Wed, 04 May 2016 07:54:20 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/12048#comment:2 https://svn.boost.org/trac10/ticket/12048#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Adjacency Graph Deprecated...</span> → <span class="trac-field-new">Deprecated libstdc++ header used in adjacency_list.hpp</span> </li> </ul> Ticket Murray Cumming <murrayc@…> Tue, 09 Aug 2016 08:37:14 GMT <link>https://svn.boost.org/trac10/ticket/12048#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12048#comment:3</guid> <description> <p> I think you could avoid this error by adding this before any include of the boost graph headers: </p> <p> #define BOOST_NO_SLIST </p> <p> That would prevent the header from trying to include these deprecated gnu headers: <a class="ext-link" href="https://github.com/boostorg/graph/blob/develop/include/boost/graph/adjacency_list.hpp#L23"><span class="icon">​</span>https://github.com/boostorg/graph/blob/develop/include/boost/graph/adjacency_list.hpp#L23</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>