Use voider to adapt "sqrt2_pow_max" to the new enable_if default type

This commit is contained in:
Ion Gaztañaga
2019-01-03 01:16:26 +01:00
parent 98e5f0ee09
commit c6298131cb

View File

@@ -262,7 +262,7 @@ template<class SizeType, class Enabler = void >
struct sqrt2_pow_max; struct sqrt2_pow_max;
template <class SizeType> template <class SizeType>
struct sqrt2_pow_max<SizeType, typename enable_if< numbits_eq<SizeType, 32> >::type> struct sqrt2_pow_max<SizeType, typename voider<typename enable_if< numbits_eq<SizeType, 32> >::type>::type>
{ {
static const SizeType value = 0xb504f334; static const SizeType value = 0xb504f334;
static const std::size_t pow = 31; static const std::size_t pow = 31;
@@ -271,7 +271,7 @@ struct sqrt2_pow_max<SizeType, typename enable_if< numbits_eq<SizeType, 32> >::t
#ifndef BOOST_NO_INT64_T #ifndef BOOST_NO_INT64_T
template <class SizeType> template <class SizeType>
struct sqrt2_pow_max<SizeType, typename enable_if< numbits_eq<SizeType, 64> >::type> struct sqrt2_pow_max<SizeType, typename voider<typename enable_if< numbits_eq<SizeType, 64> >::type>::type>
{ {
static const SizeType value = 0xb504f333f9de6484ull; static const SizeType value = 0xb504f333f9de6484ull;
static const std::size_t pow = 63; static const std::size_t pow = 63;