Opened 7 years ago
Last modified 6 years ago
#12048 new Bugs
Deprecated libstdc++ header used in adjacency_list.hpp
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost 1.59.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hi I'm using the reverse cuthill-mckee library to reorder some matrices...
Anyhow I keep getting the following error:
In file included from /usr/include/c++/4.4.7/backward/hash_set(60),
from /usr/include/boost/graph/adjacency_list.hpp(25), from main.cpp(6):
/usr/include/c++/4.4.7/backward/backward_warning.h(28): warning #1224: #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.
#warning \
Obviously if I use -Wno-deprecated this goes away but is there a fix I am using Boost 1.59.0
Thanks, Friedrich Grabner
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Summary: | Adjacency Graph Deprecated... → Deprecated libstdc++ header used in adjacency_list.hpp |
---|
comment:3 by , 6 years ago
I think you could avoid this error by adding this before any include of the boost graph headers:
#define BOOST_NO_SLIST
That would prevent the header from trying to include these deprecated gnu headers: https://github.com/boostorg/graph/blob/develop/include/boost/graph/adjacency_list.hpp#L23
Doesn't it give some clue about which header it is complaining about.
Presumably it's one of these: https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-api-4.6/a00765_source.html