|
Boost Users : |
From: Mojmir Svoboda (mojmir.svoboda_at_[hidden])
Date: 2008-08-27 09:24:19
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<boost::edge_index_t, uint16_t, EdgeProp>
> T_Graph;
many thanks,
mojmir
// please excuse incomplete information, i'm under pressure :/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net