Skip to content

Commit

Permalink
Investigate undefined policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Feb 13, 2024
1 parent 47833d6 commit a2c1def
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion include/boost/math/distributions/cauchy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
#include <boost/math/constants/constants.hpp>
#include <boost/math/distributions/complement.hpp>
#include <boost/math/distributions/detail/common_error_handling.hpp>
#include <utility>

#include <cmath>
#include <utility>

namespace boost{ namespace math
{
Expand Down
12 changes: 7 additions & 5 deletions test/compile_test/instantiate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ struct instantiate_runner_result
template <class RealType>
bool instantiate_runner_result<RealType>::value;

#ifndef BOOST_MATH_ASSERT_UNDEFINED_POLICY
# define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
#if defined(BOOST_MATH_ASSERT_UNDEFINED_POLICY)
#undef BOOST_MATH_ASSERT_UNDEFINED_POLICY
#endif

#define BOOST_MATH_ASSERT_UNDEFINED_POLICY false

#include <boost/math/tools/config.hpp>

#if (!defined(BOOST_MATH_STANDALONE) && !defined(__CYGWIN__))
#if !defined(BOOST_MATH_STANDALONE)

#include <boost/math/distributions.hpp>

Expand Down Expand Up @@ -88,7 +90,7 @@ void instantiate(RealType)
function_requires<DistributionConcept<bernoulli_distribution<RealType> > >();
function_requires<DistributionConcept<beta_distribution<RealType> > >();
function_requires<DistributionConcept<binomial_distribution<RealType> > >();
//function_requires<DistributionConcept<cauchy_distribution<RealType> > >();
function_requires<DistributionConcept<cauchy_distribution<RealType> > >();
function_requires<DistributionConcept<chi_squared_distribution<RealType> > >();
function_requires<DistributionConcept<exponential_distribution<RealType> > >();
function_requires<DistributionConcept<extreme_value_distribution<RealType> > >();
Expand Down Expand Up @@ -125,7 +127,7 @@ void instantiate(RealType)
function_requires<DistributionConcept<bernoulli_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<beta_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<binomial_distribution<RealType, test_policy> > >();
//function_requires<DistributionConcept<cauchy_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<cauchy_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<chi_squared_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<exponential_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<extreme_value_distribution<RealType, test_policy> > >();
Expand Down

0 comments on commit a2c1def

Please sign in to comment.