From cf7d296292eeb9e59fda2a80b223ba882a4ff912 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Fri, 28 Dec 2001 02:15:54 +0000 Subject: [PATCH] fixed put() function. Thanks Doug! [SVN r12156] --- include/boost/graph/subgraph.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/graph/subgraph.hpp b/include/boost/graph/subgraph.hpp index 0a98ba85..c394b21a 100644 --- a/include/boost/graph/subgraph.hpp +++ b/include/boost/graph/subgraph.hpp @@ -43,7 +43,7 @@ namespace boost { // Invariants of an induced subgraph: // - If vertex u is in subgraph g, then u must be in g.parent(). - // - If edge e is in subgraph e, then e must be in g.parent(). + // - If edge e is in subgraph g, then e must be in g.parent(). // - If edge e=(u,v) is in the root graph, then edge e // is also in any subgraph that contains both vertex u and v. @@ -744,9 +744,9 @@ namespace boost { template void - put(Property, const subgraph& g, const Key& k, const Value& val) + put(Property, subgraph& g, const Key& k, const Value& val) { - typedef typename property_map< subgraph, Property>::const_type PMap; + typedef typename property_map< subgraph, Property>::type PMap; PMap pmap(&g, get(Property(), g.m_graph)); pmap[k] = val; }