Commit 87e0c1eb authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

COMP: API change in Boost Graph Library.

The header states "shouldn't be exposed to users anymore", and so we
should probably look at how we might achieve the same thing with the API
that is intended to be exposed to users. This compiles and works with
Boost 1.49.

Change-Id: I2086f227c45692bd6aa224742369d70f71b5b264
parent 639e7585
......@@ -49,11 +49,17 @@ vtkStandardNewMacro(vtkBoostBreadthFirstSearchTree);
#if BOOST_VERSION >= 104800 // Boost 1.48.x
namespace {
vtkIdType unwrap_edge_id(vtkEdgeType const &e) {
vtkIdType unwrap_edge_id(vtkEdgeType const &e)
{
return e.Id;
}
vtkIdType unwrap_edge_id(boost::detail::reverse_graph_edge_descriptor<vtkEdgeType> const &e) {
vtkIdType unwrap_edge_id(boost::detail::reverse_graph_edge_descriptor<vtkEdgeType> const &e)
{
# if BOOST_VERSION == 104800
return e.underlying_desc.Id;
# else
return e.underlying_descx.Id;
# endif
}
}
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment