(svn r19970) -Fix (r14742): SmallMap::Insert() did not compile. Construct new items like operator[].

pull/155/head
frosch 14 years ago
parent 409c4d3342
commit 1fd5333070

@ -86,7 +86,9 @@ struct SmallMap : SmallVector<SmallPair<T, U>, S> {
FORCEINLINE bool Insert(const T &key, const U &data)
{
if (this->Find(key) != this->End()) return false;
new (this->Append()) Pair(key, data);
Pair *n = this->Append();
n->first = key;
n->second = data;
return true;
}

Loading…
Cancel
Save