consider the following (excerpt from a) class wrapper around an adjacency_list:
using namespace boost;
template <typename VertexProperty = no_property>
class MyGraphWrapper {
private:
typedef adjacency_list<vecS, listS, bidirectionalS, property<vertex_index_t, int, VertexProperty> > GraphImpl;
// ...
};
I want to store some property (in this case, a vertex index) inside the graph implementation, but at the same time I want to allow the client to specify further properties via the template parameter. May the client use the bundled property mechanism, e.g.
struct Label { std::string lab; };
MyGraphWrapper<Label> g;
My test compiled and it seems to run fine. I
s it really possible/safe to mix bundle properties with property lists in this way? Or, is there a way to avoid property lists?
Nicola