hi I’m trying to use unordered_map on a program compiled in Xcode 4.2 but the compiler doesn’t recognize it, i tried:
#include <ext/hash_map>
#include <tr1/unordered_map> //using this one currently
std::tr1::unordered_map<char *, Vars> elements;
Where Vars it’s a class, also I’m doing this in the definition of a class, the problem its that the compiler prints an error saying:
No member named 'tr1' in namespace 'std'
im not sure whats going on , so i would really appreciate any help, thanks in advance.
well it seems it was my mistake, I’m using the compiler tool generator Coco/R and it seem that at the source file i made a mistake with an include and that made the parser and scanner files having a bug, actually after that the include
and using
std::tr1::unordered_map<char*, Vars> elements;seems to work fine .
thanks anyways.