diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-02 21:13:54 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-02 21:13:54 +0100 |
commit | efe31dfb0ff6b75fa00bd65da592d7c400b01ddb (patch) | |
tree | 0a990652e43c621849f973dd0450583c59db066c /project2/common/instanceStore.h | |
parent | Delete couchSession for being a mess... and using couchdb (diff) | |
download | project2-efe31dfb0ff6b75fa00bd65da592d7c400b01ddb.tar.bz2 project2-efe31dfb0ff6b75fa00bd65da592d7c400b01ddb.tar.xz project2-efe31dfb0ff6b75fa00bd65da592d7c400b01ddb.zip |
Use libadhocutilproject2-1.1.5
Diffstat (limited to 'project2/common/instanceStore.h')
-rw-r--r-- | project2/common/instanceStore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/common/instanceStore.h b/project2/common/instanceStore.h index fc57be7..4fd4519 100644 --- a/project2/common/instanceStore.h +++ b/project2/common/instanceStore.h @@ -31,9 +31,9 @@ class InstanceMap : public InstanceStore<Type, std::map<KeyType, boost::shared_p static void Add(const KeyType & k, const boost::shared_ptr<Type> & p); static void Remove(const KeyType &); - template <class E> static boost::shared_ptr<Type> Get(const KeyType & n) + template <class E> static boost::shared_ptr<Type> Get(const KeyType & n) { - return safeMapLookup<E>(InstanceStore<Type, Store>::GetAll(), n); + return AdHoc::safeMapLookup<E>(InstanceStore<Type, Store>::GetAll(), n); } static void OnEach(const boost::function<void(const Value &)> & func); |