Apply std::remove_const before passing Graph to graph_traits in filtered_graph#395
Apply std::remove_const before passing Graph to graph_traits in filtered_graph#395tsnorri wants to merge 1 commit intoboostorg:developfrom
Conversation
– E.g. detail::residual_graph explicitly applies const to the graph. Consequently graph_traits would have to be defined also for the const graph type.
|
I just noticed that the language version in use seems to be C++14. I can change the instances of |
|
Hmmm, I would only do this if I'm 100% sure that the underlying graph can never actually be
I would much rather someone redesigned |
|
The underlying graph is in fact const at least when using (This has more to do with my other PR but anyway if the graph does not have a particular type, e.g. ) I don’t think I’m familiar enough with BGL to come up with a better design for |
|
Yeah, I'm not sure, to be honest. I would have to spend a while looking at it first and I don't have time to. |
For instance
detail::residual_graphexplicitly applies const to the graph. Consequently graph_traits would have to be defined also for the const graph type, but the LEDA graph example does not seem to indicate that it should be needed.