COIN-OR::LEMON - Graph Library

Changeset 1125:b873350e6258 in lemon for lemon/concepts/maps.h


Ignore:
Timestamp:
01/19/12 15:25:06 (8 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
1126:a30455cd0107, 1127:be7dd3a8d6a3, 1128:426a704d7483, 1140:8d281761dea4
Phase:
public
Message:

Intel C++ compatibility fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/maps.h

    r765 r1125  
    6969        const typename _ReadMap::Key& own_key;
    7070        const _ReadMap& m;
     71        Constraints() {}
    7172      };
    7273
     
    110111        const typename _WriteMap::Value& own_val;
    111112        _WriteMap& m;
     113        Constraints() {}
    112114      };
    113115    };
     
    130132      /// Returns the value associated with the given key.
    131133      Value operator[](const Key &) const {
    132         return *static_cast<Value *>(0);
     134        Value *r = 0;
     135        return *r;
    133136      }
    134137
     
    170173      /// Returns a reference to the value associated with the given key.
    171174      Reference operator[](const Key &) {
    172         return *static_cast<Value *>(0);
     175        Value *r = 0;
     176        return *r;
    173177      }
    174178
    175179      /// Returns a const reference to the value associated with the given key.
    176180      ConstReference operator[](const Key &) const {
    177         return *static_cast<Value *>(0);
     181        Value *r = 0;
     182        return *r;
    178183      }
    179184
     
    206211        typename _ReferenceMap::ConstReference own_cref;
    207212        _ReferenceMap& m;
     213        Constraints() {}
    208214      };
    209215    };
Note: See TracChangeset for help on using the changeset viewer.