rikyoz / bit7z

A C++ static library offering a clean and simple interface to the 7-zip shared libraries.
https://rikyoz.github.io/bit7z
Mozilla Public License 2.0
602 stars 110 forks source link

fix: add missing <algorithm> header (gcc14) #218

Closed SGSSGene closed 1 month ago

SGSSGene commented 1 month ago

gcc14 is complaining about unknown "std::find_if" function. (gcc13 works fine)

Description

Adds the header to bitinputarchive.cpp.

Motivation and Context

project isn't compiling with gcc14. It complains about std::find_if not known function.

How Has This Been Tested?

I simply compiled it with gcc14.1.1, no further tests.

Types of changes

Nothing changed.

Checklist:

rikyoz commented 1 month ago

Hi! Thanks for the PR! Yes, on the develop branch I added the missing include some time ago, but didn't backport the change to the `master' branch as no compiler was complaining at the time; then GCC 14 happened 😅.