COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/maps.h

    r953 r718  
    6969        const typename _ReadMap::Key& own_key;
    7070        const _ReadMap& m;
    71         Constraints() {}
    7271      };
    7372
     
    111110        const typename _WriteMap::Value& own_val;
    112111        _WriteMap& m;
    113         Constraints() {}
    114112      };
    115113    };
     
    132130      /// Returns the value associated with the given key.
    133131      Value operator[](const Key &) const {
    134         Value *r = 0;
    135         return *r;
     132        return *static_cast<Value *>(0);
    136133      }
    137134
     
    173170      /// Returns a reference to the value associated with the given key.
    174171      Reference operator[](const Key &) {
    175         Value *r = 0;
    176         return *r;
     172        return *static_cast<Value *>(0);
    177173      }
    178174
    179175      /// Returns a const reference to the value associated with the given key.
    180176      ConstReference operator[](const Key &) const {
    181         Value *r = 0;
    182         return *r;
     177        return *static_cast<Value *>(0);
    183178      }
    184179
     
    211206        typename _ReferenceMap::ConstReference own_cref;
    212207        _ReferenceMap& m;
    213         Constraints() {}
    214208      };
    215209    };
Note: See TracChangeset for help on using the changeset viewer.