Opened 6 years ago
#12526 new Bugs
test_graphs.cpp :Error: The operation "boost::undirected_graph*** is illegal
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
Compiling libs/graph/test/test_graphs.cpp with Oracle Developer Studio 12.5, wq see the following error:
$ CC -compat=5 -library=stlport4 -xO4 -mt -erroff=%none -m32 -KPIC -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I".." -c -o ./test_graphs.o ../libs/graph/test/test_graphs.cpp
"../libs/graph/test/test_properties.hpp", line 20: Error: The operation "boost::undirected_graph<VertexBundle, EdgeBundle, GraphBundle>[boost::graph_bundle_t]" is illegal.
"../libs/graph/test/test_properties.hpp", line 120: Where: While instantiating "test_graph_bundle<boost::undirected_graph<VertexBundle, EdgeBundle, GraphBundle>>(boost::undirected_graph<VertexBundle, EdgeBundle, GraphBundle>&, mpl_::bool_<1>)".
...
The following changes to boost/graph/properties.hpp resolves the issue.
$diff properties.hpp properties.hpp_orig
325a326,333 > > #if BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590)) && !defined (BOOST_GRAPH_NO_BUNDLED_PROPERTIES) > // This compiler cannot define a partial specialization based on a > // pointer-to-member type, as seen in boost/graph/subgraph.hpp line 985 (as of > // trunk r53912) > # define BOOST_GRAPH_NO_BUNDLED_PROPERTIES > #endif >