COIN-OR::LEMON - Graph Library

Changeset 74:9394072da54f in lemon-main for lemon


Ignore:
Timestamp:
02/12/08 12:37:22 (17 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Bug fixes in the ReferenceMap? concept.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/maps.h

    r51 r74  
    5656      template<typename _ReadMap>
    5757      struct Constraints {
    58 
    5958        void constraints() {
    6059          Value val = m[key];
     
    176175
    177176      template<typename _ReferenceMap>
    178       struct ReferenceMapConcept {
    179 
    180         void constraints() {
    181           checkConcept<ReadWriteMap, _ReferenceMap >();
     177      struct Constraints {
     178        void constraints() {
     179          checkConcept<ReadWriteMap<K, T>, _ReferenceMap >();
    182180          m[key] = val;
    183181          val  = m[key];
     
    192190        typename _ReferenceMap::Key& own_key;
    193191        typename _ReferenceMap::Value& own_val;
    194         typename _ReferenceMap::Reference& own_ref;
     192        typename _ReferenceMap::Reference own_ref;
    195193        Key& key;
    196194        Value& val;
    197         Reference& ref;
     195        Reference ref;
    198196        _ReferenceMap& m;
    199197      };
Note: See TracChangeset for help on using the changeset viewer.