Skip to content

Small fix to compile on Fedora 36 #14

@msevior

Description

@msevior

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions