Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-01-29 11:01:25


Well, external properties still confuse me. Assume I want to attach
some data to vertices in adjacency_list. No problem:

vector< vertex > alternative_s ;
iterator_property_map< vector<vertex>::iterator,
      property_map<G, vertex_index_t> > alternative = ...

The problem is that I have to pass alternative_s.begin() when
constructig alternative, but I might want to add new vertices.
In that case the iterator can be invalidated.

Is there a solution to this problem, except for resorting to internal
properties?

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk