[Lemon-commits] Peter Kovacs: Bug fixes in the ReferenceMap conc...
Lemon HG
hg at lemon.cs.elte.hu
Tue Feb 12 22:09:35 CET 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/9394072da54f
changeset: 74:9394072da54f
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Tue Feb 12 12:37:22 2008 +0100
description:
Bug fixes in the ReferenceMap concept.
diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
lemon/concepts/maps.h | 10 ++++------
diffs (37 lines):
diff -r c56b7389dc78 -r 9394072da54f lemon/concepts/maps.h
--- a/lemon/concepts/maps.h Tue Feb 05 11:24:57 2008 +0100
+++ b/lemon/concepts/maps.h Tue Feb 12 12:37:22 2008 +0100
@@ -55,7 +55,6 @@ namespace lemon {
template<typename _ReadMap>
struct Constraints {
-
void constraints() {
Value val = m[key];
val = m[key];
@@ -175,10 +174,9 @@ namespace lemon {
void set(const Key &k,const Value &t) { operator[](k)=t; }
template<typename _ReferenceMap>
- struct ReferenceMapConcept {
-
+ struct Constraints {
void constraints() {
- checkConcept<ReadWriteMap, _ReferenceMap >();
+ checkConcept<ReadWriteMap<K, T>, _ReferenceMap >();
m[key] = val;
val = m[key];
m[key] = ref;
@@ -191,10 +189,10 @@ namespace lemon {
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;
};
};
More information about the Lemon-commits
mailing list