You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow CPO edges(g, u) to be also customized by u.edges() #175
At the point of defining my class MyVertex I do not know the type of the graph that will be holding me. In fact, more than one graph type may be storing the same vertex type. If MyVertex were to define the member funciton edges, I do not know what graph type to pass it. And on the other hand, MyVertex::edges does not need the graph type for anything. I can of course make MyVertex::edges a template, but why forcing me to declare templates?
Alternatively, extend the customization point edges(g, u) so that it is valid when wither u.edges(g) is valid or u.edges() is valid.
Activity