mirror of
https://github.com/boostorg/graph.git
synced 2026-02-12 12:12:11 +00:00
fixed source() and target() functions to take a const graph ptr
[SVN r10174]
This commit is contained in:
@@ -140,8 +140,8 @@ namespace boost {
|
||||
public:
|
||||
sgb_edge() : _arc(0), _src(0) { }
|
||||
sgb_edge(Arc* a, Vertex* s) : _arc(a), _src(s) { }
|
||||
friend Vertex* source(self e, sgb_graph_ptr) { return e._src; }
|
||||
friend Vertex* target(self e, sgb_graph_ptr) { return e._arc->tip; }
|
||||
friend Vertex* source(self e, sgb_const_graph_ptr) { return e._src; }
|
||||
friend Vertex* target(self e, sgb_const_graph_ptr) { return e._arc->tip; }
|
||||
friend bool operator==(const self& a, const self& b) {
|
||||
return a._arc == b._arc; }
|
||||
friend bool operator!=(const self& a, const self& b) {
|
||||
|
||||
Reference in New Issue
Block a user