aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorFrançois Dumont <fdumont@gcc.gnu.org>2013-02-04 21:14:07 +0000
committerFrançois Dumont <fdumont@gcc.gnu.org>2013-02-04 21:14:07 +0000
commit4df047dd3494ad17122ea46134a951a319a81b27 (patch)
treeff7ddf9a008fd3fd07840be0618a5767dbf5ca34 /libstdc++-v3/src
parentf3bd007a3a3309e03ffb3ecabbe6a96eaad06ccf (diff)
downloadgcc-4df047dd3494ad17122ea46134a951a319a81b27.zip
gcc-4df047dd3494ad17122ea46134a951a319a81b27.tar.gz
gcc-4df047dd3494ad17122ea46134a951a319a81b27.tar.bz2
functional_hash.h (std::__is_fast_hash<>): New.
2013-02-04 François Dumont <fdumont@gcc.gnu.org> * 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
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/c++11/hash_c++0x.cc1
1 files changed, 1 insertions, 0 deletions
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 <type_traits>
#include <bits/functional_hash.h>
namespace std _GLIBCXX_VISIBILITY(default)