10 Aug
2011
10 Aug
'11
4:46 p.m.
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