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
611 stars 112 forks source link

Fix missing `std::transform` at 530 line #132

Closed gr3yknigh1 closed 1 year ago

gr3yknigh1 commented 1 year ago

Fix missing of std::transform at src/internal/formatdetect.cpp. Library doesn't compile with -DBIT7Z_AUTO_FORMAT flag.

Description

Fix missing of std::transform

Motivation and Context

Wanna fix missing of std::transform

How Has This Been Tested?

Just compiled library with -DBIT7Z_AUTO_FORMAT flag

Types of changes

Checklist:

rikyoz commented 1 year ago

Hi! It's actually quite strange; the missing include never gave me any issue with any compiler. That's why I missed it, I guess. Anyway, thank you for the PR!

gr3yknigh1 commented 1 year ago

Yep. Really strange. It was kind weird that this is simply missing of header inclusion. At the beginning I thought that this is only my problem, but I tried compile on difference branches and issue appears again. Thanks for a really nice library!