Opened 15 years ago

Closed 13 years ago

Last modified 12 years ago

#1630 closed Bugs (fixed)

gcc-4.3: adjacency_list.hpp includes deprecated header

Reported by: tim blechmann <tim@…> Owned by: Douglas Gregor
Milestone: To Be Determined Component: graph
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc:

Description

the gcc implementation of adjacency_list.hpp seems to include ext/hash_set, which is deprecated in gcc-4.3 and moved to backward/hash_set

Change History (6)

comment:1 by Douglas Gregor, 14 years ago

Milestone: Boost 1.36.0Boost 1.37.0
Status: newassigned

I guess we should be using tr1/unsorted_set et al.

comment:2 by Douglas Gregor, 14 years ago

Milestone: Boost 1.37.0Boost 1.36.0
Resolution: fixed
Status: assignedclosed

This was fixed in Boost 1.36.0. We now use backward/hash_set and backward/hash_map on GCC 4.3.

comment:3 by anonymous, 13 years ago

Milestone: Boost 1.36.0To Be Determined
Resolution: fixed
Status: closedreopened
Version: Boost 1.34.1Boost 1.41.0

This produces warnings with the new gcc versions; here's an example:

In file included from /sw/lib/gcc4.4/lib/gcc/x86_64-apple-darwin10/4.4.1/../../../../include/c++/4.4.1/backward/hash_set:59,

from /Users/emanuel/alps_svn/boost_1_41_0/boost/graph/adjacency_list.hpp:25, from /Users/emanuel/ALPS/include/alps/lattice/propertymap.h:37, from /Users/emanuel/ALPS/include/alps/lattice/graphproperties.h:34, from /Users/emanuel/ALPS/include/alps/lattice/graph.h:37, from /Users/emanuel/ALPS/include/alps/lattice/unitcell.h:37, from /Users/emanuel/ALPS/include/alps/lattice/disorder.h:38, from /Users/emanuel/ALPS/include/alps/lattice/latticegraph.h:36, from /Users/emanuel/ALPS/include/alps/lattice/latticelibrary.h:35, from /Users/emanuel/ALPS/include/alps/lattice/graph_helper.h:34, from /Users/emanuel/ALPS/include/alps/model/basisdescriptor.h:36, from /Users/emanuel/ALPS/include/alps/model/hamiltonian.h:36, from /Users/emanuel/ALPS/include/alps/model/modellibrary.h:38, from /Users/emanuel/ALPS/include/alps/model/model_helper.h:33, from /Users/emanuel/ALPS/include/alps/scheduler/montecarlo.h:37, from /Users/emanuel/ALPS/include/alps/scheduler.h:31, from qwl_evaluate.C:28:

/sw/lib/gcc4.4/lib/gcc/x86_64-apple-darwin10/4.4.1/../../../../include/c++/4.4.1/backward/backward_warning.h:28:2: warning: #warning 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.

comment:4 by Jeremiah Willcock, 13 years ago

Resolution: fixed
Status: reopenedclosed

This is fixed in the trunk and 1.42, as of r57560 and r58089 for the trunk.

comment:5 by anonymous, 12 years ago

The bug still exists in Boost 1.44 and gcc 4.4.5.

comment:6 by Jeremiah Willcock, 12 years ago

I do not see any uses of <ext/*> or <*/hash_set> in the trunk version of BGL or related components. It looks like it is included by Boost.Config and Boost.Serialization; maybe BGL is getting it from one of those.

Note: See TracTickets for help on using tickets.