How to declare a structure containing vertex or edge properties?

Sorry if this is a FAQ. I have done this in the past, but can't remember the exact syntax, and don't have the old code. It is possible to declare a struct and use it to hold vertex or edge properties, rather than using the property_map interface, e.g. struct tagFOO { int length; byte color; }FOO; etc. How can I do this? Where is the doc on it? Thanks Eric

On Tue, 4 May 2010, Eric Fowler wrote:
Sorry if this is a FAQ. I have done this in the past, but can't remember the exact syntax, and don't have the old code. It is possible to declare a struct and use it to hold vertex or edge properties, rather than using the property_map interface, e.g.
struct tagFOO { int length; byte color; }FOO;
etc.
How can I do this? Where is the doc on it?
http://www.boost.org/doc/libs/1_42_0/libs/graph/doc/bundles.html I believe this page will be linked from the BGL documentation table of contents in 1.43; it is really hard to find now. -- Jeremiah Willcock
participants (2)
-
Eric Fowler
-
Jeremiah Willcock