Boost logo

Boost Users :

Subject: [Boost-users] [BGL] bundled properties and forward declarations (changes from 1.42 -> 1.46.1 ?)
From: Anders Wallin (anders.e.e.wallin_at_[hidden])
Date: 2011-08-10 12:46:59


I have code using bundled properties roughly like this that compiles
with boost 1.42:
struct EdgeProperty;
typedef adjacency_list< ... , EdgeProperty , ...> MyGraph;
typedef graph_traits<MyGraph>::edge_descriptor Edge;

struct EdgeProperty {
    Edge next;
};

When trying to compile this with boost 1.46.1 I get "error: forward
declaration of EdgeProperty’". I am not sure why.
The obvious solution would be to move the definition of EdgeProperty
before the MyGraph typedef, but then I run into a circular
dependency problem as I want to store an edge_descriptor in EdgeProperty.

any ideas?

Anders


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