Opened 15 years ago
Closed 15 years ago
#1431 closed Bugs (fixed)
edmunds_karp_max_flow fails to compile with bundled residual capacity
| Reported by: | Owned by: | Douglas Gregor | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | graph |
| Version: | Boost 1.34.1 | Severity: | Problem |
| Keywords: | Cc: |
Description
If edmunds_karp_max_flow is called with a map created with get(&edge_bundle::residual_capacity, graph) from the bundled residual capacity property then the source fails to compile.
The problem is as follows:
In filtered_graph.hpp the is_residual_edge predicate has a default constructor:
is_residual_edge() { }
But it also has a member:
ResidualCapacityEdgeMap m_rcap;
Bundle property maps have the following constructor only:
bundle_property_map(Graph* g_, T Bundle::* pm_)
So in the case of a bundle_property_map the is_residual_edge predicate declaration is invalid because it's default constructor implicitly calls the default constructor of m_rcap which doesn't exist.
Change History (2)
comment:1 by , 15 years ago
| Component: | None → graph |
|---|---|
| Owner: | set to |
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |

This bug was fixed in Boost 1.34.0. Please see: