|
Boost Users : |
From: Finnegan Southey (fdjsouthey_at_[hidden])
Date: 2004-06-09 00:26:24
Hi,
I'm getting the following error trying to iterate over adjacent vertices
in boost_1_31 with VC++ 7.1:
c:\boost_1_31_0\boost\mpl\aux_\preprocessed\plain\apply.hpp(50)
: 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
hope.
-------------- CUT -------------------------------------------
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/adjacency_list.hpp>
typedef boost::property<boost::edge_weight_t, int>
LocationEdgeProperty;
typedef boost::adjacency_list<boost::vecS, boost::vecS,
boost::undirectedS,
boost::no_property, LocationEdgeProperty> LocationGraph;
typedef boost::graph_traits<LocationGraph>::vertex_descriptor
VertexDescriptor;
typedef boost::graph_traits<LocationGraph>::adjacency_iterator
AdjacencyIterator;
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 -------------------------------------------
Regards,
Finnegan
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net