COIN-OR::LEMON - Graph Library

Changeset 765:703ebf476a1d in lemon


Ignore:
Timestamp:
08/20/09 20:34:30 (10 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
766:ba79e8d64448, 867:994c7df296c9, 912:37f440367057
Phase:
public
Message:

Also check ReferenceMapTag? in concept checks (#312)

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/map_extender.h

    r664 r765  
    5050    typedef typename Parent::ConstReference ConstReference;
    5151
     52    typedef typename Parent::ReferenceMapTag ReferenceMapTag;
     53
    5254    class MapIt;
    5355    class ConstMapIt;
     
    192194    typedef typename Parent::ConstReference ConstReference;
    193195
     196    typedef typename Parent::ReferenceMapTag ReferenceMapTag;
     197
    194198    class MapIt;
    195199    class ConstMapIt;
  • lemon/concepts/maps.h

    r576 r765  
    183183      template<typename _ReferenceMap>
    184184      struct Constraints {
    185         void constraints() {
     185        typename enable_if<typename _ReferenceMap::ReferenceMapTag, void>::type
     186        constraints() {
    186187          checkConcept<ReadWriteMap<K, T>, _ReferenceMap >();
    187188          ref = m[key];
Note: See TracChangeset for help on using the changeset viewer.