X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fmaputils.h;h=2495a1e29b41854e62850324d80fa358ffe2e152;hp=ecee0fbea45955dbf9bef8f8bf296bb387b3e414;hb=bcca7a40a6c59ee1effbaa1027a5364213434448;hpb=85c6b143c9b85ce09ee4f3cb842d3ae006b7a6fe diff --git a/source/core/maputils.h b/source/core/maputils.h index ecee0fb..2495a1e 100644 --- a/source/core/maputils.h +++ b/source/core/maputils.h @@ -75,7 +75,7 @@ const typename T::mapped_type &get_item(const T &map, const typename T::key_type } template -const typename T::iterator insert_unique(T &map, const typename T::key_type &key, const typename T::mapped_type &item) +typename T::iterator insert_unique(T &map, const typename T::key_type &key, const typename T::mapped_type &item) { if(map.count(key)) throw key_error(key);