RE: iso C++ and ‘hash_map’ problem

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

 



thanks, that did the trick...:clap:


John (Eljay) Love-Jensen wrote:
> 
> Hi mahmoodn,
> 
>> The file has the extension hxx. I searched and some say that hash_map is
>> not stanrad in GCC.
> 
> Correct, <hash_map> header is not standard C++, therefore it is not in the
> standard C++ headers with GCC.
> 
> Boost provides a hash map for C++.  <http://www.boost.org/>
> 
> The GCC I am using provides a hash map (but I'm not sure if all GCC's
> provide a hash map):
> 
> #include <ext/hash_map>
> __gnu_cxx::hash_map<int, int> mymap;
> 
> The next standard of C++ will provide a hash map, through <unordered_map>
> header.  If your GCC is more current than mine, you may have that
> available to you now.  (You probably need to set -std= correctly.)
> 
> HTH,
> --Eljay
> 
> 

-- 
View this message in context: http://old.nabble.com/iso-C%2B%2B-and-%E2%80%98hash_map%E2%80%99-problem-tp27241004p27242160.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[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