Opened 7 years ago

Last modified 6 years ago

#11880 new Bugs

BGL adjacency_matrix_traits compiling failure

Reported by: jackymiao@… Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

'ice_not' has been deprecated in v1.60; however, it's still called in BGL adjacency_matrix.hpp:

BOOST_STATIC_ASSERT(type_traits::ice_not<(is_same<Directed, bidirectionalS>::value)>::value);

Change History (6)

comment:1 by anonymous, 7 years ago

Same issue building sdcc current vcs in Mageia, is there any progress?

In file included from /usr/include/boost/property_map/property_map.hpp:16:0,

from /usr/include/boost/graph/graphviz.hpp:19, from ./../SDCCralloc.hpp:54, from ralloc2.cc:24:

/usr/include/boost/graph/adjacency_matrix.hpp:446:5: error: 'ice_not' is not a member of 'boost::type_traits'

BOOST_STATIC_ASSERT(type_traits::ice_not<(is_same<Directed, bidirectionalS>::value)>::value);

comment:2 by sir@…, 7 years ago

+1, SDCC is affected by this problem and it's giving me some grief.

comment:3 by anonymous, 7 years ago

Same issue here : https://github.com/Oslandia/SFCGAL/issues/119

ice_not is no more included in type_traits.hpp but adjacency_list.hpp relies on this inclusion.

comment:4 by anonymous, 7 years ago

Changing line 446 in adjacency_matrix.hpp may suffice.

BOOST_STATIC_ASSERT(!is_same<Directed, bidirectionalS>::value);

comment:5 by Murray Cumming <murrayc@…>, 6 years ago

This was fixed a while ago: https://github.com/boostorg/graph/commit/1d5f43d9f6e8a5295bad7593db942cc755eb664c and it looks like it will appear in the next version of boost: 1.62.

comment:6 by anonymous, 6 years ago

For people stuck with Boost 1.60, the following include can also be added before including adjacency_matrix.hpp:

#include <boost/type_traits/ice.hpp>

Note: See TracTickets for help on using tickets.