Boost logo

Boost Users :

From: Finnegan Southey (fdjsouthey_at_[hidden])
Date: 2004-06-09 00:26:24


I'm getting the following error trying to iterate over adjacent vertices
in boost_1_31 with VC++ 7.1:

: fatal error C1001: INTERNAL COMPILER ERROR
         (compiler file 'msc1.cpp', line 2701)

I have noticed other similar problems reported in the list archive along
with a request for a short example. Any advice would be appreciated.

The following example demonstrates the problem, sufficiently briefly, I

-------------- CUT -------------------------------------------

#include <boost/graph/graph_traits.hpp>
#include <boost/graph/adjacency_list.hpp>

typedef boost::property<boost::edge_weight_t, int>
typedef boost::adjacency_list<boost::vecS, boost::vecS,
    boost::no_property, LocationEdgeProperty> LocationGraph;
typedef boost::graph_traits<LocationGraph>::vertex_descriptor
typedef boost::graph_traits<LocationGraph>::adjacency_iterator

void test()
    LocationGraph graph;
    VertexDescriptor current = 0;

    std::pair<AdjacencyIterator, AdjacencyIterator>
        neighbourRange = boost::adjacent_vertices(current, graph);

    // ICE here
    for (; neighbourRange.first != neighbourRange.second;
           neighbourRange.first++) {

-------------- CUT -------------------------------------------



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at