lemon/concepts/maps.h
changeset 944 b4af20d02ae0
parent 529 f5bc148f7e1f
child 975 b873350e6258
     1.1 --- a/lemon/concepts/maps.h	Mon Mar 14 08:56:54 2011 +0100
     1.2 +++ b/lemon/concepts/maps.h	Fri Apr 15 09:26:09 2011 +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;