From 4df047dd3494ad17122ea46134a951a319a81b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Dumont?= Date: Mon, 4 Feb 2013 21:14:07 +0000 Subject: functional_hash.h (std::__is_fast_hash<>): New. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2013-02-04 François Dumont * include/bits/functional_hash.h (std::__is_fast_hash<>): New. * include/bits/basic_string.h: Specialize previous to mark std::hash for string types as slow. * include/bits/hashtable.h (__cache_default): Replace is_integral with __is_fast_hash. * src/c++11/hash_c++0x.cc: Add type_traits include. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adapt dg-error line number. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Likewise. From-SVN: r195738 --- libstdc++-v3/src/c++11/hash_c++0x.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'libstdc++-v3/src') diff --git a/libstdc++-v3/src/c++11/hash_c++0x.cc b/libstdc++-v3/src/c++11/hash_c++0x.cc index 29549ea..fc5295a 100644 --- a/libstdc++-v3/src/c++11/hash_c++0x.cc +++ b/libstdc++-v3/src/c++11/hash_c++0x.cc @@ -26,6 +26,7 @@ # error "hash_c++0x.cc must be compiled with -std=gnu++0x" #endif +#include #include namespace std _GLIBCXX_VISIBILITY(default) -- cgit v1.1