1.1 --- a/lemon/concepts/maps.h Mon Jan 12 23:11:39 2009 +0100
1.2 +++ b/lemon/concepts/maps.h Thu Nov 05 15:48:01 2009 +0100
1.3 @@ -16,8 +16,8 @@
1.4 *
1.5 */
1.6
1.7 -#ifndef LEMON_CONCEPT_MAPS_H
1.8 -#define LEMON_CONCEPT_MAPS_H
1.9 +#ifndef LEMON_CONCEPTS_MAPS_H
1.10 +#define LEMON_CONCEPTS_MAPS_H
1.11
1.12 #include <lemon/core.h>
1.13 #include <lemon/concept_check.h>
1.14 @@ -182,7 +182,8 @@
1.15
1.16 template<typename _ReferenceMap>
1.17 struct Constraints {
1.18 - void constraints() {
1.19 + typename enable_if<typename _ReferenceMap::ReferenceMapTag, void>::type
1.20 + constraints() {
1.21 checkConcept<ReadWriteMap<K, T>, _ReferenceMap >();
1.22 ref = m[key];
1.23 m[key] = val;
1.24 @@ -213,4 +214,4 @@
1.25
1.26 } //namespace lemon
1.27
1.28 -#endif // LEMON_CONCEPT_MAPS_H
1.29 +#endif