* include/bits/hashtable_policy.h: Use __bool_constant.
authorJonathan Wakely <jwakely@redhat.com>
Thu, 8 Jan 2015 13:27:30 +0000 (13:27 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 8 Jan 2015 13:27:30 +0000 (13:27 +0000)
From-SVN: r219343

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable_policy.h

index affe20416bbaed99ed31e9f75fee8335294dfa31..7e2616549032a9d115fab5efe0d9585aa3e9251e 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/hashtable_policy.h: Use __bool_constant.
+
 2015-01-07  Jonathan Wakely  <jwakely@redhat.com>
 
        * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
index 1251ef07ed326b46a66cd39560f5d6adc27f781d..14bcca6562c4bbeb58bec3c5bd5eb430b7c170fd 100644 (file)
@@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   // Helper type used to detect whether the hash functor is noexcept.
   template <typename _Key, typename _Hash>
-    struct __is_noexcept_hash : std::integral_constant<bool,
+    struct __is_noexcept_hash : std::__bool_constant<
        noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
     { };
 
@@ -211,9 +211,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   template<bool _Cache_hash_code, bool _Constant_iterators, bool _Unique_keys>
     struct _Hashtable_traits
     {
-      template<bool _Cond>
-       using __bool_constant = integral_constant<bool, _Cond>;
-
       using __hash_cached = __bool_constant<_Cache_hash_code>;
       using __constant_iterators = __bool_constant<_Constant_iterators>;
       using __unique_keys = __bool_constant<_Unique_keys>;