When I compile a c++ application I’m writing that makes use of hash_map, I get this warning on g++ 4.3.2:
You are using the deprecated header . To eliminate this warning, use an ANSI-standard header file or use hte -Wno-deprecated compiler flag.
9> #include <ext/hash_map>
What include replaces this? I’ve searched for a while on google, and can’t find anything except for people having similar problems, but no solution.
My very first Google hit for ‘g++ hash_map deprecated‘ takes me to a page that includes a list of things to use instead of the deprecated headers and classes.
For
hash_map, the list suggests usingunordered_map, in theunordered_mapheader. The class is new for TR1.