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

Small fix to compile on Fedora 36 #14

Open
msevior opened this issue Sep 21, 2022 · 0 comments
Open

Small fix to compile on Fedora 36 #14

msevior opened this issue Sep 21, 2022 · 0 comments

Comments

@msevior
Copy link

msevior commented Sep 21, 2022

My first attempt to compile got errors like this:
Building CXX object CMakeFiles/FastBDT_static.dir/src/FastBDT.cxx.o
In file included from /home/msevior/Dropbox/FastBDT_github/FastBDT/src/FastBDT.cxx:5:
/home/msevior/Dropbox/FastBDT_github/FastBDT/include/FastBDT.h: In member function ‘Value FastBDT::FeatureBinning::BinToValue(unsigned int) const’:
/home/msevior/Dropbox/FastBDT_github/FastBDT/include/FastBDT.h:215:28: error: ‘numeric_limits’ is not a member of ‘std’
215 | return -std::numeric_limits::infinity();
....
This was very simply fixed by adding..

#include <limits>

To FastBDT.h

Now it compiles with 0 errors

Please make this minor change...

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

1 participant