Fixes in adaptors.h to compile on AIX
authorPeter Kovacs <kpeter@inf.elte.hu>
Fri, 20 Feb 2009 18:43:34 +0100
changeset 495dab9e610e37d
parent 492 b9b3473327e3
child 517 2b6d5d22bb23
Fixes in adaptors.h to compile on AIX
lemon/adaptors.h
     1.1 --- a/lemon/adaptors.h	Mon Feb 16 18:15:52 2009 +0000
     1.2 +++ b/lemon/adaptors.h	Fri Feb 20 18:43:34 2009 +0100
     1.3 @@ -3195,25 +3195,25 @@
     1.4  
     1.5        void set(const Arc& key, const V& val) {
     1.6          if (SplitNodesBase<DGR>::origArc(key)) {
     1.7 -          _arc_map.set(key._item.first(), val);
     1.8 +          _arc_map.set(static_cast<const DigraphArc&>(key), val);
     1.9          } else {
    1.10 -          _node_map.set(key._item.second(), val);
    1.11 +          _node_map.set(static_cast<const DigraphNode&>(key), val);
    1.12          }
    1.13        }
    1.14  
    1.15        ReturnValue operator[](const Arc& key) {
    1.16          if (SplitNodesBase<DGR>::origArc(key)) {
    1.17 -          return _arc_map[key._item.first()];
    1.18 +          return _arc_map[static_cast<const DigraphArc&>(key)];
    1.19          } else {
    1.20 -          return _node_map[key._item.second()];
    1.21 +          return _node_map[static_cast<const DigraphNode&>(key)];
    1.22          }
    1.23        }
    1.24  
    1.25        ConstReturnValue operator[](const Arc& key) const {
    1.26          if (SplitNodesBase<DGR>::origArc(key)) {
    1.27 -          return _arc_map[key._item.first()];
    1.28 +          return _arc_map[static_cast<const DigraphArc&>(key)];
    1.29          } else {
    1.30 -          return _node_map[key._item.second()];
    1.31 +          return _node_map[static_cast<const DigraphNode&>(key)];
    1.32          }
    1.33        }
    1.34