2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-01 08:32:11 +00:00

Added forwarding of values of property tags to fix bundled properties

[SVN r77616]
This commit is contained in:
Jeremiah Willcock
2012-03-28 20:57:02 +00:00
parent 7fccfd1f42
commit 771d9307cc

View File

@@ -1383,26 +1383,26 @@ edges(const BOOST_CSR_GRAPH_TYPE& g)
// Graph properties
template<BOOST_CSR_GRAPH_TEMPLATE_PARMS, class Tag, class Value>
inline void
set_property(BOOST_CSR_GRAPH_TYPE& g, Tag, const Value& value)
set_property(BOOST_CSR_GRAPH_TYPE& g, Tag tag, const Value& value)
{
get_property_value(g.m_property, Tag()) = value;
get_property_value(g.m_property, tag) = value;
}
template<BOOST_CSR_GRAPH_TEMPLATE_PARMS, class Tag>
inline
typename graph_property<BOOST_CSR_GRAPH_TYPE, Tag>::type&
get_property(BOOST_CSR_GRAPH_TYPE& g, Tag)
get_property(BOOST_CSR_GRAPH_TYPE& g, Tag tag)
{
return get_property_value(g.m_property, Tag());
return get_property_value(g.m_property, tag);
}
template<BOOST_CSR_GRAPH_TEMPLATE_PARMS, class Tag>
inline
const
typename graph_property<BOOST_CSR_GRAPH_TYPE, Tag>::type&
get_property(const BOOST_CSR_GRAPH_TYPE& g, Tag)
get_property(const BOOST_CSR_GRAPH_TYPE& g, Tag tag)
{
return get_property_value(g.m_property, Tag());
return get_property_value(g.m_property, tag);
}
template <BOOST_CSR_GRAPH_TEMPLATE_PARMS, typename Tag>