Serialization of adjacency_list
Hello! I slightely modified kevin-bacon2.cpp from examples of the BGL. Having tried to serialize the graph g back to the text and print it to stdout, I got a static assertion failure. Is serialization of the adjacency_list fully implemented indeed? Or is it a trouble with boost::serialization? -- Anatoli Sakhnik P.S.: diff kevin-bacon2.old.cpp kevin-bacon2.cpp 18a19
#include
88a90,91 archive::text_oarchive oa(std::cout); oa << g;
On Apr 12, 2006, at 9:46 AM, Anatoli Sakhnik wrote:
Hello! I slightely modified kevin-bacon2.cpp from examples of the BGL. Having tried to serialize the graph g back to the text and print it to stdout, I got a static assertion failure. Is serialization of the adjacency_list fully implemented indeed? Or is it a trouble with boost::serialization? -- Anatoli Sakhnik P.S.: diff kevin-bacon2.old.cpp kevin-bacon2.cpp 18a19
#include
88a90,91 archive::text_oarchive oa(std::cout); oa << g;
You'll need to include the header
Actually, the header was included. I succeeded compiling the program,
having worked a little with rasper at the adj_list_serialize.hpp. Its
common with adjacency_list_io.hpp problem is that the get(prop, desc,
graph) doesn't want to compile.
Nevertheless, something continued going wrong in the run-time, so I
decided to give it up until the boost team releases next stable
version.
Thank you!
-- Anatoli Sakhnik.
On 12/04/06, Doug Gregor
You'll need to include the header
to get serialization support for adjacency_list. The header is in Boost CVS and will be a part of the upcoming Boost release.
Anatoli Sakhnik
Actually, the header was included. I succeeded compiling the program, having worked a little with rasper at the adj_list_serialize.hpp. Its common with adjacency_list_io.hpp problem is that the get(prop, desc, graph) doesn't want to compile. Nevertheless, something continued going wrong in the run-time, so I decided to give it up until the boost team releases next stable version. Thank you!
Hello, I have the same problem with adj_list_serialize.hpp. If you find a solution to correct the bug, please tell me. Thanks
Even after fixing this compilation error, I got in the trouble, which was even more frightend. The graph isn't saved to an archive properly, probably this is due to the very early stage of development of serialization support. I solved the problem having implemented custom serialization routines for my concrete adjacency_list instantiation. Good luck! -- Anatoli Sakhnik
Hello, I have the same problem with adj_list_serialize.hpp. If you find a solution to correct the bug, please tell me.
participants (3)
-
Anatoli Sakhnik
-
Doug Gregor
-
Robert Bertrandoman