Boost logo

Boost Users :

Subject: [Boost-users] [Serialization][BGL] problem serializing an edge
From: Ireneusz Szcześniak (irek.szczesniak_at_[hidden])
Date: 2010-07-19 15:17:14


Hi,

I have a problem serializing an edge in a graph. This is my test case:

#include <iostream>
#include <boost/archive/text_oarchive.hpp>
#include <boost/graph/adj_list_serialize.hpp>

using namespace std;
using namespace boost;

int
main()
{
   typedef adjacency_list<listS, vecS, undirectedS> Graph;
   typedef graph_traits<Graph>::edge_descriptor Edge;

   Graph g;
   Edge e;

   boost::archive::text_oarchive oa(cout);
   oa << g;
   oa << e;

   return 0;
}

Compilation with gcc version 4.4.1 returns this error:

/usr/include/boost/serialization/access.hpp:109: error: ‘class
boost::detail::edge_desc_impl<boost::undirected_tag, unsigned int>’
has no member named ‘serialize’

I would appreciate it if someone could point out what the problem is
and how to fix it.

Thanks,
Irek

-- 
Ireneusz (Irek) Szczesniak
http://www.irkos.org

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