$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [graph] Bundled properties, listS, listS, write_graphml
From: Dmitry Bufistov (dmitry_at_[hidden])
Date: 2008-12-02 05:39:06
boost::write_graphml(
      std::ofstream("xxx.xml"),
      gblGrf,
      boost::get( &Host::idx,_gblGrf ),
      tmpDP
      );
?
--Dmitry
remi.chateauneu_at_[hidden] wrote:
> Hi,
> 
> I try to use boost::graph with two bundled properties, listS for 
> vertices and edges, and serialize with write_graphml, and it does not 
> compile: Boost 1.35 and 1.36, Windows Visual C++ 8.0
> 
> Here are the most important details of the code:
> 
> class Host
> {
>     int idx ;
> };
> 
> class SocketPair
> {
>     int xxx ;
> };
> 
> typedef boost::adjacency_list<
>         boost::listS, /// Needs stability of iterators.
>         boost::listS, /// Needs stability of iterators.
>         boost::directedS,
>         Host,
>         SocketPair > Graph;
> 
> Graph gblGrf ;
> 
> boost::dynamic_properties tmpDP ;
> 
> boost::write_graphml(
>     std::ofstream("xxx.xml"),
>     boost::vertex_index_map( boost::get( &Host::idx,_gblGrf ) ),
>     gblGrf,
>     tmpDP
>     );
>