Boost logo

Boost :

From: Rob Smallshire (robert_at_[hidden])
Date: 2001-07-18 06:39:44

I having some trouble getting to grips with custom vertex properties
as described on the following page of the documentation:

In the example presented under the title 'Custom Vertex Properties' a
new vertex property is defined as :

struct first_vertex_name_t {
    enum { num = 201 };
    typedef vertex_property_tag kind;

Later in the code we find the line:

property_map<MyGraphType, first_vertex_name_t>::type
    name = get(first_vertex_name, G);

How is the identifier 'first_vertex_name' (without the _t)
obtained ? I can not see it referred to elsewhere in the example!

The complete source code for the example in interior_property_map.cpp
uses the enum and the BOOST_INSTALL_PROPERTY macro, and so is
actually a slightly different example to that shown in the HTML


Rob Smallshire

Boost list run by bdawes at, gregod at, cpdaniel at, john at