1.1 --- a/lemon/maps.h Thu Apr 03 13:00:18 2008 +0100
1.2 +++ b/lemon/maps.h Tue Apr 08 22:51:26 2008 +0200
1.3 @@ -116,7 +116,7 @@
1.4 /// Constructor with specified initial value
1.5
1.6 /// Constructor with specified initial value.
1.7 - /// \param v is the initial value of the map.
1.8 + /// \param v The initial value of the map.
1.9 ConstMap(const Value &v) : _value(v) {}
1.10
1.11 /// Gives back the specified value.
1.12 @@ -143,6 +143,11 @@
1.13 return ConstMap<K, V>(v);
1.14 }
1.15
1.16 + template<typename K, typename V>
1.17 + inline ConstMap<K, V> constMap() {
1.18 + return ConstMap<K, V>();
1.19 + }
1.20 +
1.21
1.22 template<typename T, T v>
1.23 struct Const {};
1.24 @@ -613,7 +618,7 @@
1.25 typename K = typename F::argument_type,
1.26 typename V = typename F::result_type>
1.27 class FunctorToMap : public MapBase<K, V> {
1.28 - const F &_f;
1.29 + F _f;
1.30 public:
1.31 typedef MapBase<K, V> Parent;
1.32 typedef typename Parent::Key Key;