1.1 --- a/lemon/concepts/maps.h Fri Jan 06 16:27:06 2012 +0100
1.2 +++ b/lemon/concepts/maps.h Thu Jan 19 15:25:06 2012 +0100
1.3 @@ -68,6 +68,7 @@
1.4 const Key& key;
1.5 const typename _ReadMap::Key& own_key;
1.6 const _ReadMap& m;
1.7 + Constraints() {}
1.8 };
1.9
1.10 };
1.11 @@ -109,6 +110,7 @@
1.12 const typename _WriteMap::Key& own_key;
1.13 const typename _WriteMap::Value& own_val;
1.14 _WriteMap& m;
1.15 + Constraints() {}
1.16 };
1.17 };
1.18
1.19 @@ -129,7 +131,8 @@
1.20
1.21 /// Returns the value associated with the given key.
1.22 Value operator[](const Key &) const {
1.23 - return *static_cast<Value *>(0);
1.24 + Value *r = 0;
1.25 + return *r;
1.26 }
1.27
1.28 /// Sets the value associated with the given key.
1.29 @@ -169,12 +172,14 @@
1.30
1.31 /// Returns a reference to the value associated with the given key.
1.32 Reference operator[](const Key &) {
1.33 - return *static_cast<Value *>(0);
1.34 + Value *r = 0;
1.35 + return *r;
1.36 }
1.37
1.38 /// Returns a const reference to the value associated with the given key.
1.39 ConstReference operator[](const Key &) const {
1.40 - return *static_cast<Value *>(0);
1.41 + Value *r = 0;
1.42 + return *r;
1.43 }
1.44
1.45 /// Sets the value associated with the given key.
1.46 @@ -205,6 +210,7 @@
1.47 typename _ReferenceMap::Reference own_ref;
1.48 typename _ReferenceMap::ConstReference own_cref;
1.49 _ReferenceMap& m;
1.50 + Constraints() {}
1.51 };
1.52 };
1.53