Boost logo

Boost Users :

From: Jean Utke (utke_at_[hidden])
Date: 2004-11-29 12:12:36


I am running into a problem compiling code that uses write_graphviz
which used to work e.g. for gcc 3.3 and boost versions prior to 1.31.
As I am trying to move forward I am testing different gcc and boost
versions.
Here is the example code:
----------------------------------------------------------------
#include "boost/graph/adjacency_list.hpp"
#include "boost/graph/graphviz.hpp"

class BoostVertexContentType {
public:
  enum { num=100 };
  typedef boost::vertex_property_tag kind;
};

class BoostEdgeContentType {
public:
  enum { num=101 };
  typedef boost::edge_property_tag kind;
};

int main(void) {
  boost::adjacency_list<
    boost::listS,
    boost::listS,
    boost::bidirectionalS,
    boost::property<BoostVertexContentType, int>,
    boost::property<BoostEdgeContentType, int> > b;
  std::ofstream anOutFileStream;
  anOutFileStream.open("test.dot",std::ios::out);
  boost::write_graphviz(anOutFileStream,
             b);
  anOutFileStream.close();
}
-----------------------------------------------------------------
This compiles ok with gcc 3.3 and boost 1.30.0 / 1.30.2

It does not compile with gcc 3.3/3.4.3 and boost 1.31/1.32
basically complaining about:

boost_1_32_0/boost/graph/graphviz.hpp:269: error: no
   match for `std::basic_ostream<char, std::char_traits<char> >& << const
   boost::detail::error_property_not_found&' operator

My target right now is to use gcc 3.4.3 with boost 1.32.
Before I spend time searching for a workaround I hope that somebody
has seen this and that there is an easy solution.

Thanks,

Jean


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