Update AMTL; replace AutoPtr/UniquePtr with STL.

This commit is contained in:
David Anderson
2020-05-18 18:19:16 -07:00
parent c2df49ee33
commit 7d7253c9cc
20 changed files with 78 additions and 58 deletions
+2 -4
View File
@@ -29,8 +29,6 @@
* Version: $Id$
*/
#include <am-moveable.h>
#ifndef _include_sourcemod_namehashset_h_
#define _include_sourcemod_namehashset_h_
@@ -124,7 +122,7 @@ public:
template <typename U>
bool add(Insert &i, U &&value)
{
return table_.add(i, ke::Forward<U>(value));
return table_.add(i, std::forward<U>(value));
}
bool retrieve(const char *aKey, T *value)
@@ -144,7 +142,7 @@ public:
Insert i = table_.findForAdd(key);
if (i.found())
return false;
return table_.add(i, ke::Forward<U>(value));
return table_.add(i, std::forward<U>(value));
}
bool contains(const char *aKey)