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


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;

   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.


Ireneusz (Irek) Szczesniak

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at