clang is not working with unordered_map (maybe because we use the old SDK)

This commit is contained in:
David Capello 2015-01-21 11:16:17 -03:00
parent ef1e44726f
commit ce08c144e8

View File

@ -13,13 +13,14 @@
#include "base/mutex.h" #include "base/mutex.h"
#include "base/scoped_lock.h" #include "base/scoped_lock.h"
#include <unordered_map> #include <map>
namespace doc { namespace doc {
static base::mutex mutex; static base::mutex mutex;
static ObjectId newId = 0; static ObjectId newId = 0;
static std::unordered_map<ObjectId, Object*> objects; // TODO Profile this and see if an unordered_map works best.
static std::map<ObjectId, Object*> objects;
Object::Object(ObjectType type) Object::Object(ObjectType type)
: m_type(type) : m_type(type)