Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Trying to use subgraph
From: Lindley M French (lfrench1_at_[hidden])
Date: 2009-05-20 12:54:53


Okay, I found the schedule which says 1.40 won't be out until August 1st. That doesn't work for me, so I decided to try pulling the necessary updates from the repository directly.

I've got the new subgraph.hpp and many of the template errors have gone away. However, I'm still getting several errors relating to this bit of code:

//===========================================================================
  // Mutability Traits
  // Just pull the mutability traits form the underlying graph. Note that this
  // will probably fail (badly) for labeled graphs.
  template <typename G>
  struct graph_mutability_traits< subgraph<G> > {
      typedef typename graph_mutability_traits<G>::category category;
  };

In particular:

subgraph.hpp(893) : error C2143: syntax error : missing ';' before '<'
subgraph.hpp(893) : error C2059: syntax error : '<'
subgraph.hpp(893) : error C2065: 'G' : undeclared identifier
subgraph.hpp(893) : error C2143: syntax error : missing ';' before '{'
subgraph.hpp(893) : error C2447: '{' : missing function header (old-style formal list?)

Is there another file I have to grab to make this work?

>
> On a (possibly) related note, I'm trying to use the above subgraph in
> kruskal_minimum_spanning_tree(), but it's giving me an error about
>
> error C2039: 'vertex_bundled' : is not a member of 'boost::subgraph<Graph>'
>

This was patched in trunk, but didn't for some reason, it hasn't been merged
into the release branch. It'll appear in 1.40.

Andrew Sutton
andrew.n.sutton_at_[hidden]


_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users



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