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)]; } }