Core/Misc: Implement Trinity::Auto_Ptr. Ditches ACE_Refcounted_AutoPtr (we strongly suspect it does NOT clean up the underlying pointer properly). Underlying type is now ACE_Strong_Bound_Ptr

This commit is contained in:
Machiavelli
2012-03-25 21:21:23 +02:00
parent 44a474f1e3
commit fa1d3f305b
4 changed files with 59 additions and 6 deletions
+2 -2
View File
@@ -24,14 +24,14 @@
#include "Weather.h"
#include "Log.h"
#include "ObjectMgr.h"
#include <ace/Refcounted_Auto_Ptr.h>
#include "AutoPtr.h"
namespace WeatherMgr
{
namespace
{
typedef UNORDERED_MAP<uint32, ACE_Refcounted_Auto_Ptr<Weather, ACE_Null_Mutex> > WeatherMap;
typedef UNORDERED_MAP<uint32, Trinity::AutoPtr<Weather, ACE_Null_Mutex> > WeatherMap;
typedef UNORDERED_MAP<uint32, WeatherData> WeatherZoneMap;
WeatherMap m_weathers;