2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-31 20:22:09 +00:00

added specificity to source() and target() so that adjacency_list could be adapted.

[SVN r7838]
This commit is contained in:
Dave Abrahams
2000-09-25 22:24:09 +00:00
parent dfc30e7f2a
commit 02f42466f0

View File

@@ -337,15 +337,33 @@ namespace boost {
return get_property_value(g.m_property, value_type(), Tag());
}
template <class Directed, class Vertex, class Graph>
// dwa 09/25/00 - needed to be more explicit so reverse_graph would work.
template <class Directed, class Vertex,
class EdgeListS,
class VertexListS,
class DirectedS,
class VertexProperty,
class EdgeProperty,
class GraphProperty>
inline Vertex
source(const detail::edge_base<Directed,Vertex>& e, Graph& )
source(const detail::edge_base<Directed,Vertex>& e,
const adjacency_list<EdgeListS, VertexListS, DirectedS,
VertexProperty, EdgeProperty, GraphProperty>&)
{
return e.m_source;
}
template <class Directed, class Vertex, class Graph>
template <class Directed, class Vertex,
class EdgeListS,
class VertexListS,
class DirectedS,
class VertexProperty,
class EdgeProperty,
class GraphProperty>
inline Vertex
target(const detail::edge_base<Directed,Vertex>& e, Graph& )
target(const detail::edge_base<Directed,Vertex>& e,
const adjacency_list<EdgeListS, VertexListS, DirectedS,
VertexProperty, EdgeProperty, GraphProperty>&)
{
return e.m_target;
}