# HG changeset patch # User Peter Kovacs # Date 2008-02-12 12:37:22 # Node ID 9394072da54f9c2ea25ccee7fed0e1e9dd6d0702 # Parent c56b7389dc78bb0b145539e7f2459af786223c0e Bug fixes in the ReferenceMap concept. diff --git a/lemon/concepts/maps.h b/lemon/concepts/maps.h --- a/lemon/concepts/maps.h +++ b/lemon/concepts/maps.h @@ -55,7 +55,6 @@ template struct Constraints { - void constraints() { Value val = m[key]; val = m[key]; @@ -175,10 +174,9 @@ void set(const Key &k,const Value &t) { operator[](k)=t; } template - struct ReferenceMapConcept { - + struct Constraints { void constraints() { - checkConcept(); + checkConcept, _ReferenceMap >(); m[key] = val; val = m[key]; m[key] = ref; @@ -191,10 +189,10 @@ typename _ReferenceMap::Key& own_key; typename _ReferenceMap::Value& own_val; - typename _ReferenceMap::Reference& own_ref; + typename _ReferenceMap::Reference own_ref; Key& key; Value& val; - Reference& ref; + Reference ref; _ReferenceMap& m; }; };