Yes, actually I tried __gnu_cxx::hash_map and found the behavior is something different, for example, it does not support insert(std::make_pair( , )). Since it is not the key point, so just replace it with std::map.
-----Original Message----- From: Andi Kleen [mailto:[email protected]] Sent: Friday, December 26, 2014 2:13 PM To: Andi Kleen Cc: Guo, Yejun; [email protected] Subject: Re: [Beignet] [PATCH] replace hash_map with map On Fri, Dec 26, 2014 at 06:55:31AM +0100, Andi Kleen wrote: > On Fri, Dec 26, 2014 at 05:26:19AM +0000, Guo, Yejun wrote: > > Hash_map is defined inside beignet with std::hash, std::equal_to and > > std::tr1::unordered_map. Std::hash is not supported by gcc 4.4.7, for > > example, which is the default compiler of centos 6.5. > > But it has hash_map, it's just not in std:: but in ext:: Actually in __gnu_cxx sorry > > So simply import from both name spaces. -Andi _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
