I'm having a problem using the Boost Graphics Library adjacency list. This seems to be a circular dependency problem: I have a typedef T of a template that uses some class A. In addition, A stores a pointer to an object of type T. Now the compiler tells me that T does not name the type.
Here are excerpts from my more specific files:
#include "lane.hpp"
#include "tie.hpp"
typedef boost::adjacency_list<boost::listS, boost::listS,
boost::directedS, Tie, Lane> Map;
typedef boost::graph_traits<Map>::edge_descriptor edge_descriptor;
#include "graphdefinitions.hpp"
class Lane {
...
edge_descriptor *left, *right;
};
class Tie {
...
};
How to solve this addiction / inclusion problem?
:
, edge_descriptor , int. , edge_descriptors Lane int- , , graphdefinitions.hpp tie.hpp. , , . , Edge_descriptor - ...