# HG changeset patch # User Peter Kovacs # Date 2009-02-20 18:43:34 # Node ID dab9e610e37d14e409058b0f7206fb18ce76b855 # Parent b9b3473327e344ba8647be9f8c674644892e25d1 Fixes in adaptors.h to compile on AIX 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::origArc(key)) { - _arc_map.set(key._item.first(), val); + _arc_map.set(static_cast(key), val); } else { - _node_map.set(key._item.second(), val); + _node_map.set(static_cast(key), val); } } ReturnValue operator[](const Arc& key) { if (SplitNodesBase::origArc(key)) { - return _arc_map[key._item.first()]; + return _arc_map[static_cast(key)]; } else { - return _node_map[key._item.second()]; + return _node_map[static_cast(key)]; } } ConstReturnValue operator[](const Arc& key) const { if (SplitNodesBase::origArc(key)) { - return _arc_map[key._item.first()]; + return _arc_map[static_cast(key)]; } else { - return _node_map[key._item.second()]; + return _node_map[static_cast(key)]; } }