mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 14:34:44 +02:00
Use voider to adapt "sqrt2_pow_max" to the new enable_if default type
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user