On 9/9/05, Tony Cook
Hello,
Can anyone tell me if I've exposed a bug in the Boost Graph Library or if the following behaviour is expected and I need to code the solution in a different way, and if so HOW?
In summary the boost::copy_graph algorithm fails to compile when defining the graph using std::vector for the edge container and std::list for the vertex container (Visual Studio 7.1, Boost 1.32.0). Other graph type definitions work. (NB I can't use the "working" graph types in my main application as VC 7.1 bombs with an Internal Compiler Error. I'm forced to use a vecS,lists graph just to work round the ICE problem!!).
Tony, See #5 on the BGL FAQ page (http://www.boost.org/libs/graph/doc/faq.html.) Basically, copy_graph needs the graph to have a property map that maps vertices to integers. Once you fix your code as described in #5, it will compile and run as you expect. Aaron