// This is the only way we can avoid
// warning: non-standard suffix on floating constant [-Wpedantic]
// when building with -Wall -pedantic. Neither __extension__
-// nor #pragma dianostic ignored work :(
+// nor #pragma diagnostic ignored work :(
//
#pragma GCC system_header
#endif
{
do_init(tag());
}
- static void do_init(const mpl::int_<113>&)
+ static void do_init(const boost::integral_constant<int, 113>&)
{
bessel_k0(T(0.5));
bessel_k0(T(1.5));
}
- static void do_init(const mpl::int_<64>&)
+ static void do_init(const boost::integral_constant<int, 64>&)
{
bessel_k0(T(0.5));
bessel_k0(T(1.5));
template <typename T, int N>
-T bessel_k0_imp(const T& x, const mpl::int_<N>&)
+T bessel_k0_imp(const T& x, const boost::integral_constant<int, N>&)
{
BOOST_ASSERT(0);
return 0;
}
template <typename T>
-T bessel_k0_imp(const T& x, const mpl::int_<24>&)
+T bessel_k0_imp(const T& x, const boost::integral_constant<int, 24>&)
{
BOOST_MATH_STD_USING
if(x <= 1)
}
template <typename T>
-T bessel_k0_imp(const T& x, const mpl::int_<53>&)
+T bessel_k0_imp(const T& x, const boost::integral_constant<int, 53>&)
{
BOOST_MATH_STD_USING
if(x <= 1)
}
template <typename T>
-T bessel_k0_imp(const T& x, const mpl::int_<64>&)
+T bessel_k0_imp(const T& x, const boost::integral_constant<int, 64>&)
{
BOOST_MATH_STD_USING
if(x <= 1)
}
template <typename T>
-T bessel_k0_imp(const T& x, const mpl::int_<113>&)
+T bessel_k0_imp(const T& x, const boost::integral_constant<int, 113>&)
{
BOOST_MATH_STD_USING
if(x <= 1)
}
template <typename T>
-T bessel_k0_imp(const T& x, const mpl::int_<0>&)
+T bessel_k0_imp(const T& x, const boost::integral_constant<int, 0>&)
{
if(boost::math::tools::digits<T>() <= 24)
- return bessel_k0_imp(x, mpl::int_<24>());
+ return bessel_k0_imp(x, boost::integral_constant<int, 24>());
else if(boost::math::tools::digits<T>() <= 53)
- return bessel_k0_imp(x, mpl::int_<53>());
+ return bessel_k0_imp(x, boost::integral_constant<int, 53>());
else if(boost::math::tools::digits<T>() <= 64)
- return bessel_k0_imp(x, mpl::int_<64>());
+ return bessel_k0_imp(x, boost::integral_constant<int, 64>());
else if(boost::math::tools::digits<T>() <= 113)
- return bessel_k0_imp(x, mpl::int_<113>());
+ return bessel_k0_imp(x, boost::integral_constant<int, 113>());
BOOST_ASSERT(0);
return 0;
}
template <typename T>
inline T bessel_k0(const T& x)
{
- typedef mpl::int_<
+ typedef boost::integral_constant<int,
((std::numeric_limits<T>::digits == 0) || (std::numeric_limits<T>::radix != 2)) ?
0 :
std::numeric_limits<T>::digits <= 24 ?