Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on platforms with "double-double" long double type #659

Merged
merged 1 commit into from
Jul 13, 2021

Commits on Jul 7, 2021

  1. Fix build on platforms with "double-double" long double type

    Since commit 01f3b7d most tests started to fail on platforms that use a
    "double-double" for long double, like powerpc64le:
    
    ../../../boost/math/tools/precision.hpp:148:137: error: expected primary-expression before ‘long’
      148 | inline constexpr long double epsilon<long double>(const std::true_type&
      BOOST_MATH_APPEND_EXPLICIT_TEMPLATE_TYPE(long double)) noexcept(long double)
    
    ../../../boost/math/tools/precision.hpp:148:137: error: expected ‘)’ before ‘long’
      148 | inline constexpr long double epsilon<long double>(const std::true_type&
      BOOST_MATH_APPEND_EXPLICIT_TEMPLATE_TYPE(long double)) noexcept(long double)
    
    ../../../boost/math/tools/precision.hpp:148:137: error: expected initializer before ‘long’
      148 | inline constexpr long double epsilon<long double>(const std::true_type&
      BOOST_MATH_APPEND_EXPLICIT_TEMPLATE_TYPE(long double)) noexcept(long double)
    
    Fix this by replacing the noexcept expression with the contents of
    BOOST_MATH_NOEXCEPT, which was the intention of commit 01f3b7d.
    mscastanho committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    c80aa81 View commit details
    Browse the repository at this point in the history