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:
parent
f128fcd86f
commit
bac6644915
11 changed files with 149 additions and 33 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Reference in a new issue