diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-11-19 03:19:43 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-11-19 03:19:43 -0800 |
commit | bc4d02c8486e328e73b54d51a452885f1648db68 (patch) | |
tree | 377c70d60c87bcb7a18af40b9c9b974c1ee235f0 | |
parent | fe63e0d62b612880a477584934e05fb0cb8a99a0 (diff) | |
download | mu-bc4d02c8486e328e73b54d51a452885f1648db68.tar.gz |
4128
-rw-r--r-- | 001help.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/001help.cc b/001help.cc index 814bdde7..188862b0 100644 --- a/001help.cc +++ b/001help.cc @@ -219,6 +219,7 @@ template<typename T> typename T::mapped_type const& get(const T& map, typename T return iter->second; } template<typename T> typename T::mapped_type const& put(T& map, typename T::key_type const& key, typename T::mapped_type const& value) { + // requires value to have a zero-arg (default) constructor map[key] = value; return map[key]; } |