Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: stats: remove use of
BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS
This macro must not be used in the global scope, but rather in a separate namespace (see, e.g., `boost_math/example/policy_eg_9.cpp`). It caused compilation errors with Clang on Windows in PR 246 on the conda-forge scipy feedback. This bit of code also did not seem necessary, given that these compile flags in `stats/_boost/meson.build` should already achieve the same effect: ``` '-DBOOST_MATH_EVALUATION_ERROR_POLICY=user_error', '-DBOOST_MATH_OVERFLOW_ERROR_POLICY=user_error', ``` That the custom error handling in `func_defs.hpp` is still used can be verified by running for example after modifying the `user_evaluation_error` handler: ``` python dev.py test -t scipy.stats.tests.test_distributions -- -k test_boost_eval_issue_14606 ```
- Loading branch information