Infovis/vtkBoostBreadthFirstSearchTree.cxx depends on Boost internals, breaks with Boost 1.49
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
VTK depends on boost internals and fails to build with Boost 1.49:
[ 86%] Building CXX object Infovis/CMakeFiles/vtkInfovis.dir/vtkBoostBreadthFirstSearchTree.cxx.o /home/steve/Packages/boost-defaults/rebuilds/1.49/build/vtk/vtk-5.8.0/Infovis/vtkBoostBreadthFirstSearchTree.cxx: In function 'vtkIdType {anonymous}::unwrap_edge_id(const boost::detail::reverse_graph_edge_descriptor&)': /home/steve/Packages/boost-defaults/rebuilds/1.49/build/vtk/vtk-5.8.0/Infovis/vtkBoostBreadthFirstSearchTree.cxx:56:14: error: 'const class boost::detail::reverse_graph_edge_descriptor' has no member named 'underlying_desc' make[3]: *** [Infovis/CMakeFiles/vtkInfovis.dir/vtkBoostBreadthFirstSearchTree.cxx.o] Error 1
The code in question is:
#if BOOST_VERSION >= 104800 // Boost 1.48.x namespace { vtkIdType unwrap_edge_id(vtkEdgeType const &e) { return e.Id; } vtkIdType unwrap_edge_id(boost::detail::reverse_graph_edge_descriptor const &e) { return e.underlying_desc.Id; } } #endif
Note the usage of boost::detail, a non-public API. Can this be coded to use public APIs?