Solved some issues and prepared the library for using unordered_map instead of hash_map (C++ TR1). Can only use this when g++-4.0.3 is out

This commit is contained in:
maartenkeijzer 2005-10-15 21:27:47 +00:00
commit bac6644915
11 changed files with 149 additions and 33 deletions

View file

@ -232,8 +232,11 @@ class ErrorMeasureImpl {
vector<ErrorMeasure::result> calc_error(const vector<Sym>& pop) {
// first declone
#if USE_TR1
typedef std::tr1::unordered_map<Sym, unsigned, HashSym> HashMap;
#else
typedef hash_map<Sym, unsigned, HashSym> HashMap;
#endif
HashMap clone_map;
vector<Sym> decloned;
decloned.reserve(pop.size());