mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*Core: Fixed problem with ArrayMap::Create (thanks Shire)
git-svn-id: svn://ultimatepp.org/upp/trunk@4002 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b8ac76905b
commit
affb8a370a
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ public:
|
|||
T& Add(const K& k, T *newt) { B::key.Add(k); return B::value.Add(newt); }
|
||||
T& Insert(int i, const K& k, T *newt) { B::key.Insert(i, k); return B::value.Insert(i, newt); }
|
||||
using B::Insert;
|
||||
template <class TT> TT& Create(const K& k) { TT *q = new TT; B::key.Add(k); return B::value.Add(q); }
|
||||
template <class TT> TT& Create(const K& k) { TT *q = new TT; B::key.Add(k); return static_cast<TT&>(B::value.Add(q)); }
|
||||
|
||||
T& Set(int i, T *ptr) { return B::value.Set(i, ptr); }
|
||||
T *PopDetach() { B::key.Drop(); return B::value.PopDetach(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue