Browse Source

map: changing comment on insertion failure in avl_tree

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> 10 years ago
parent
commit
05f9979e53
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lol/base/map.h

+ 1
- 1
src/lol/base/map.h View File

@@ -56,7 +56,7 @@ public:
m_tree.Insert(typed_key, default_value);
}

ASSERT(m_tree.TryGetValue(typed_key, value_ptr), "inner tree is messed up in map");
ASSERT(m_tree.TryGetValue(typed_key, value_ptr), "inserted key can’t be retrieved. key operator < must behave as a comparator (a<b => !b<a)");

/* If not found, insert a new value. */
return *value_ptr;


Loading…
Cancel
Save