problem with deprecated ext/hash_map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
what happen to ext/hash_map ? What is the replacement for this header?
I have this code: #include <ext/hash_map>
...
typedef __gnu_cxx::hash_map<PhysicalMemoryAddress, InfiniteDirectoryEntry_p, 
AddrHash> inf_directory_t;
and get this error:
In file included from /usr/include/c++/4.4/ext/hash_map:60,
                 from InfiniteDir.cpp:47:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: error: #warning This file 
includes at least one deprecated or antiquated header which may be removed 
without further notice at a future date. Please use a non-deprecated interface 
with equivalent functionality instead. For a listing of replacement headers and 
interfaces, consult the file backward_warning.h. To disable this warning use 
-Wno-deprecated.

based on backward_warning.h, I used <unordered_map>. So my code changes to:

#include <unordered_map> 
...
typedef __gnu_cxx::hash_map<PhysicalMemoryAddress, InfiniteDirectoryEntry_p, 
AddrHash> inf_directory_t; 
This time I get this error:
In file included from /usr/include/c++/4.4/unordered_map:35,
                 from InfiniteDirectory.cpp:47:
/usr/include/c++/4.4/c++0x_warning.h:31:2: error: #error This file requires 
compiler and library support for the upcoming ISO C++ standard, C++0x. This 
support is currently experimental, and must be enabled with the -std=c++0x or 
-std=gnu++0x compiler options.
 
where should I exactly use -std? In makefile? 
 
Thanks,
// Naderan *Mahmood; 



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux