Commit bcdb641
authored
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.1 parent 90d6851 commit bcdb641
3 files changed
Lines changed: 4 additions & 1 deletion
File tree
- src/observer
- sql/optimizer/cascade/tasks
- storage
- buffer
- common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments