[Lemon-commits] Peter Kovacs: Fixes in adaptors.h to compile on AIX
Lemon HG
hg at lemon.cs.elte.hu
Fri Feb 20 23:02:42 CET 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/dab9e610e37d
changeset: 525:dab9e610e37d
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Fri Feb 20 18:43:34 2009 +0100
description:
Fixes in adaptors.h to compile on AIX
diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
lemon/adaptors.h | 12 ++++++------
diffs (35 lines):
diff --git a/lemon/adaptors.h b/lemon/adaptors.h
--- a/lemon/adaptors.h
+++ b/lemon/adaptors.h
@@ -3195,25 +3195,25 @@
void set(const Arc& key, const V& val) {
if (SplitNodesBase<DGR>::origArc(key)) {
- _arc_map.set(key._item.first(), val);
+ _arc_map.set(static_cast<const DigraphArc&>(key), val);
} else {
- _node_map.set(key._item.second(), val);
+ _node_map.set(static_cast<const DigraphNode&>(key), val);
}
}
ReturnValue operator[](const Arc& key) {
if (SplitNodesBase<DGR>::origArc(key)) {
- return _arc_map[key._item.first()];
+ return _arc_map[static_cast<const DigraphArc&>(key)];
} else {
- return _node_map[key._item.second()];
+ return _node_map[static_cast<const DigraphNode&>(key)];
}
}
ConstReturnValue operator[](const Arc& key) const {
if (SplitNodesBase<DGR>::origArc(key)) {
- return _arc_map[key._item.first()];
+ return _arc_map[static_cast<const DigraphArc&>(key)];
} else {
- return _node_map[key._item.second()];
+ return _node_map[static_cast<const DigraphNode&>(key)];
}
}
More information about the Lemon-commits
mailing list