mirror of
https://github.com/boostorg/math.git
synced 2026-01-28 07:22:12 +00:00
Quash some VC12 warnings.
This commit is contained in:
@@ -55,6 +55,11 @@ private:
|
||||
|
||||
typedef chi_squared_distribution<double> chi_squared;
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#endif
|
||||
|
||||
template <class RealType, class Policy>
|
||||
inline const std::pair<RealType, RealType> range(const chi_squared_distribution<RealType, Policy>& /*dist*/)
|
||||
{ // Range of permissible values for random variable x.
|
||||
@@ -69,6 +74,10 @@ inline const std::pair<RealType, RealType> range(const chi_squared_distribution<
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
template <class RealType, class Policy>
|
||||
inline const std::pair<RealType, RealType> support(const chi_squared_distribution<RealType, Policy>& /*dist*/)
|
||||
{ // Range of supported values for random variable x.
|
||||
|
||||
@@ -315,6 +315,12 @@ inline typename Dist::value_type round_to_floor(const Dist& d, typename Dist::va
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#endif
|
||||
|
||||
template <class Dist>
|
||||
inline typename Dist::value_type round_to_ceil(const Dist& d, typename Dist::value_type result, typename Dist::value_type p, bool c)
|
||||
{
|
||||
@@ -343,6 +349,10 @@ inline typename Dist::value_type round_to_ceil(const Dist& d, typename Dist::val
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
//
|
||||
// Now finally are the public API functions.
|
||||
// There is one overload for each policy,
|
||||
|
||||
@@ -71,6 +71,11 @@ private:
|
||||
|
||||
typedef normal_distribution<double> normal;
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#endif
|
||||
|
||||
template <class RealType, class Policy>
|
||||
inline const std::pair<RealType, RealType> range(const normal_distribution<RealType, Policy>& /*dist*/)
|
||||
{ // Range of permissible values for random variable x.
|
||||
@@ -100,6 +105,10 @@ inline const std::pair<RealType, RealType> support(const normal_distribution<Rea
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
template <class RealType, class Policy>
|
||||
inline RealType pdf(const normal_distribution<RealType, Policy>& dist, const RealType& x)
|
||||
{
|
||||
|
||||
@@ -26,6 +26,11 @@
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#endif
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace math
|
||||
@@ -1057,5 +1062,9 @@ namespace boost
|
||||
} // namespace math
|
||||
} // namespace boost
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
// EOF
|
||||
|
||||
Reference in New Issue
Block a user