|
Boost Users : |
Subject: Re: [Boost-users] [graph] ambiguity moving from 1.48 to 1.54
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2013-10-25 10:43:00
(snip)
> //////////////////////////////////////////////////////////////////////////
> /// types
> typedef VertexData VertexProps; ///< custom vertex
> properties
> typedef boost::property<boost::edge_index_t, int,
> boost::property<boost::edge_bundle_t, EdgeData> > EdgeProps; ///<
> custom edge properties
> typedef boost::adjacency_list<boost::vecS,
> boost::vecS,
> boost::undirectedS,
> VertexProps,
> EdgeProps> Type; ///< custom graph type
Instead of using boost::property<boost::edge_bundle_t, EdgeData>, just
use EdgeData. edge_bundle_t is a built-in property map that should not
be defined as a user property type.
-- Jeremiah Willcock
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