summaryrefslogtreecommitdiff
path: root/blossom5-v2.05.src/MinCost/MinCost.cpp.rej
blob: 1597c4948b1729d0de949aca1823367b94b8cddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- MinCost.cpp
+++ MinCost.cpp
@@ -253,19 +253,19 @@
 template <typename CostType> 
 	void DualMinCost<CostType>::SetLowerBound(NodeId i, CostType cmin)
 {
-	AddEdge(i, source, FLOW_INFTY, 0, -cmin);
+	DualMinCost<CostType>::AddEdge(i, source, FLOW_INFTY, 0, -cmin);
 }
 
 template <typename CostType> 
 	void DualMinCost<CostType>::SetUpperBound(NodeId i, CostType cmax)
 {
-	AddEdge(source, i, FLOW_INFTY, 0, cmax);
+	DualMinCost<CostType>::AddEdge(source, i, FLOW_INFTY, 0, cmax);
 }
 
 template <typename CostType> 
 	void DualMinCost<CostType>::AddConstraint(NodeId i, NodeId j, CostType cmax)
 {
-	AddEdge(i, j, FLOW_INFTY, 0, cmax);
+	DualMinCost<CostType>::AddEdge(i, j, FLOW_INFTY, 0, cmax);
 }
 
 template <typename CostType>