pauldreik / rdfind

find duplicate files utility
Other
986 stars 81 forks source link

Include <limits> in rdfind.cc #93

Closed samee closed 1 year ago

samee commented 3 years ago

Without this include, make produces the following error:

rdfind.cc: In function ‘Options parseOptions(Parser&)’:
rdfind.cc:225:30: error: ‘numeric_limits’ is not a member of ‘std’
  225 |     o.maximumfilesize = std::numeric_limits<decltype(o.maximumfilesize)>::max();

I'm running Ubuntu 21.10, with C++ headers being provided by libstdc++-11-dev installed. Compiler is g++ 11.2.0.

satmandu commented 3 years ago

With GCC 11.2 we're also adding #include <stdexcept> to Checksum.cc in the Chromebrew package.

combs commented 2 years ago

same as #84? —me, a rando

thesamesam commented 1 year ago

Yep, obsolete.

pauldreik commented 1 year ago

thanks, fixed in main.