The following code says that passing the map as const into the operator[] method discards qualifiers:
const
operator[]
#include #in
You cannot use operator[] on a map that is const as that method is not const as it allows you to modify the map (you can assign to _map[key]). Try using the find method instead.
_map[key]
find