
boost::write_graphml( std::ofstream("xxx.xml"), gblGrf, boost::get( &Host::idx,_gblGrf ), tmpDP ); ? --Dmitry remi.chateauneu@gmx.de 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 );