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

Problem in geometric.hpp for MacOs Arm64 #1126

Closed
kenarab opened this issue Apr 29, 2024 · 1 comment
Closed

Problem in geometric.hpp for MacOs Arm64 #1126

kenarab opened this issue Apr 29, 2024 · 1 comment

Comments

@kenarab
Copy link
Contributor

kenarab commented Apr 29, 2024

This line should be corrected
At /math/distributions/geometric.hpp at line 404

  return std::log(p); // success_fraction
      

Now the code is

  return log(p); // success_fraction
      

When building that library. Throws this error

In file included from /opt/homebrew/include/boost/math/distributions.hpp:26:
/opt/homebrew/include/boost/math/distributions/geometric.hpp:404:16: error: unexpected namespace name 'log': expected expression
        return log(p); // success_fraction
               ^
1 error generated.
make[2]: *** [CMakeFiles/PonisIqCoreNLV.dir/Unity/unity_0_cxx.cxx.o] Error 1
make[1]: *** [CMakeFiles/PonisIqCoreNLV.dir/all] Error 2
make: *** [all] Error 2
@kenarab
Copy link
Contributor Author

kenarab commented Apr 29, 2024

I will try to correct by my self on the repo, but don't know if it is possible
Editing this file in a fork
https://github.com/boostorg/math/blob/develop/include/boost/math/distributions/geometric.hpp

kenarab added a commit to kenarab/math that referenced this issue Apr 29, 2024
The proposal is derived from this issue
boostorg#1126
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants