- template<typename T>
- EndgameBase<T>* get(Key key) const {
-
- typedef typename Map<T>::type M;
- typename M::const_iterator it = map<M>().find(key);
- return it != map<M>().end() ? it->second : NULL;
+ template<typename T> EndgameBase<T>* get(Key key) {
+ return map((T*)0).count(key) ? map((T*)0)[key] : NULL;