You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build): support the latest version of gcc (#597)
### What problem were solved in this pull request?
When compiling MiniOB with a newer version of GCC (I use 15.1.1), a
series of compilation errors may occur. This is mainly because the new
version of the compiler has stricter standards for header file inclusion
and namespace usage.
Issue Number: close None
Problem:
Some source files use algorithm functions like `std::sort` or
`std::for_each` but do not include the `<algorithm>` header file.
### What is changed and how it works?
Added `#include <algorithm>` in all C++ source files that use
`std::sort` and `std::for_each`.
### Other information
Tests show that after applying these modifications, the project can be
successfully compiled in the GCC 15.1.1 environment.
0 commit comments