From ea0b599a914a5022d295b37ea52593c4db880cc6 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 8 Jan 2015 13:27:30 +0000 Subject: [PATCH] * include/bits/hashtable_policy.h: Use __bool_constant. From-SVN: r219343 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/bits/hashtable_policy.h | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index affe204..7e26165 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2015-01-08 Jonathan Wakely + + * include/bits/hashtable_policy.h: Use __bool_constant. + 2015-01-07 Jonathan Wakely * libsupc++/Makefile.am: Compile del_ops.cc as C++14. diff --git a/libstdc++-v3/include/bits/hashtable_policy.h b/libstdc++-v3/include/bits/hashtable_policy.h index 1251ef0..14bcca6 100644 --- a/libstdc++-v3/include/bits/hashtable_policy.h +++ b/libstdc++-v3/include/bits/hashtable_policy.h @@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Helper type used to detect whether the hash functor is noexcept. template - struct __is_noexcept_hash : std::integral_constant()(declval()))> { }; @@ -211,9 +211,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template struct _Hashtable_traits { - template - using __bool_constant = integral_constant; - using __hash_cached = __bool_constant<_Cache_hash_code>; using __constant_iterators = __bool_constant<_Constant_iterators>; using __unique_keys = __bool_constant<_Unique_keys>; -- 2.7.4