lemon/concepts/maps.h
changeset 742 8e68671af789
parent 529 f5bc148f7e1f
child 953 b873350e6258
     1.1 --- a/lemon/concepts/maps.h	Wed Sep 30 08:36:43 2009 +0200
     1.2 +++ b/lemon/concepts/maps.h	Wed Sep 30 08:41:06 2009 +0200
     1.3 @@ -182,7 +182,8 @@
     1.4  
     1.5        template<typename _ReferenceMap>
     1.6        struct Constraints {
     1.7 -        void constraints() {
     1.8 +        typename enable_if<typename _ReferenceMap::ReferenceMapTag, void>::type
     1.9 +        constraints() {
    1.10            checkConcept<ReadWriteMap<K, T>, _ReferenceMap >();
    1.11            ref = m[key];
    1.12            m[key] = val;