Skip to content

Conversation

marsevilspirit
Copy link
Contributor

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.

I used gcc 15.1.1 to compile, but it didn't pass. It seems that the latest version of gcc has changed some things.
@CLAassistant
Copy link

CLAassistant commented Aug 4, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@hnwyllmm hnwyllmm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hnwyllmm hnwyllmm merged commit bcdb641 into oceanbase:main Aug 7, 2025
15 checks passed
@marsevilspirit marsevilspirit deleted the fix/support-latest-gcc-version branch August 7, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants