[graph] [serialization] loading adjacency_list
hello,
i have 1.36.0 now and i have troubles serializing adjacency list.
graph itself saves okay in whatever oarchive and looks okay, but
when loading graph, his properties are not set.. in fact defaults
are used instead what serialization is trying to load.
is there something that changed from 1.35.0 and 1.36.0 in this area?
my (uneducated!) guess is that the serialization loads data
into temporary that is discarded afterwards.
i traced it to file adj_list_serialize.hpp around line 90:
now i want the line
ar >> serialization::make_nvp("vertex_property", get(vertex_all_t(), graph, v));
to be transformed into form:
something & vp = get(vertex_all_t(), graph, v);
ar >> serialization::make_nvp("vertex_property", vp);
at least for debugging purposes..
i'm wondering that this "something" could be.. i tried
property_map<...>::type etc, but failed ultimately.
the same apply to edge: what is the return type of get(edge_all...
when my graph is defined by:
typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS,
VertexProp,
boost::property
okay, it was my mistake, i had boost 1.33.1 linked in. now with 1.36.0 it works. but anyway: i'd like to know the answer to following, if possible:
now i want the line ar >> serialization::make_nvp("vertex_property", get(vertex_all_t(), graph, v));
to be transformed into form: something & vp = get(vertex_all_t(), graph, v); ar >> serialization::make_nvp("vertex_property", vp);
PS: sorry for the spam... but you know how it is: when you are the most desperate and ask on mailing list, you discover your stupidity 10 min after.. best regards, mojmir
participants (1)
-
Mojmir Svoboda