|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81771 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2012-12-07 14:30:29
Author: jewillco
Date: 2012-12-07 14:30:28 EST (Fri, 07 Dec 2012)
New Revision: 81771
URL: http://svn.boost.org/trac/boost/changeset/81771
Log:
Fixed adding properties in labeled_graph; fixes #7773
Text files modified:
trunk/boost/graph/labeled_graph.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/graph/labeled_graph.hpp
==============================================================================
--- trunk/boost/graph/labeled_graph.hpp (original)
+++ trunk/boost/graph/labeled_graph.hpp 2012-12-07 14:30:28 EST (Fri, 07 Dec 2012)
@@ -140,7 +140,7 @@
// Tag dispatch on unique associative containers (i.e. maps).
template <typename Container, typename Graph, typename Label, typename Prop>
std::pair<typename graph_traits<Graph>::vertex_descriptor, bool>
- insert_labeled_vertex(Container& c, Graph& g, Label const& l, Prop const&,
+ insert_labeled_vertex(Container& c, Graph& g, Label const& l, Prop const& p,
unique_associative_container_tag)
{
// Here, we actually have to try the insertion first, and only add
@@ -150,6 +150,7 @@
std::pair<Iterator, bool> x = c.insert(std::make_pair(l, Vertex()));
if(x.second) {
x.first->second = add_vertex(g);
+ put(boost::vertex_all, g, x.first->second, p);
}
return std::make_pair(x.first->second, x.second);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk