Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2006-04-12 11:37:51


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 <boost/archive/text_oarchive.hpp>
> 88a90,91
>> archive::text_oarchive oa(std::cout);
>> oa << g;

You'll need to include the header <boost/graph/
adj_list_serialize.hpp> to get serialization support for
adjacency_list. The header is in Boost CVS and will be a part of the
upcoming Boost release.

        Doug


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