diff options
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); |