FastBDT icon indicating copy to clipboard operation
FastBDT copied to clipboard

Small fix to compile on Fedora 36

Open msevior opened this issue 3 years ago • 0 comments

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<Value>::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<Value>::infinity(); .... This was very simply fixed by adding..

#include <limits>

To FastBDT.h

Now it compiles with 0 errors

Please make this minor change...

msevior avatar Sep 21 '22 03:09 msevior