- typedef std::map<Key, EndgameBase<Value>* > EFMap;
- typedef std::map<Key, EndgameBase<ScaleFactor>* > SFMap;
+ typedef std::map<Key, EndgameBase<eg_fun<0>::type>*> M1;
+ typedef std::map<Key, EndgameBase<eg_fun<1>::type>*> M2;
+
+ M1 m1;
+ M2 m2;
+
+ M1& map(M1::mapped_type) { return m1; }
+ M2& map(M2::mapped_type) { return m2; }
+
+ template<EndgameType E> void add(const std::string& code);