Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing include of <algorithm> #3041

Merged
merged 1 commit into from
May 24, 2024

Conversation

copyrat90
Copy link
Contributor

@copyrat90 copyrat90 commented May 24, 2024

Description

I found that some macOS specific sources are missing dependency includes to <algorithm>.

This makes it unable to build SFML on C++23 using Apple Clang 15, shown on GitHub actions run below.
Run 1
Run 2

This commit adds the missing includes to <algorithm> to fix this.
Run 3 (fixed)

Tasks

  • Tested on Linux
  • Tested on Windows
  • Tested on macOS
  • Tested on iOS
  • Tested on Android

How to test this PR?

Try to build SFML on macOS with Apple Clang 15 with C++23

@ChrisThrasher
Copy link
Member

Sure enough I can recreate these errors but only when I compile SFML in C++23 mode. Do you know what it is about the change of standard that causes this to manifest?

@ChrisThrasher
Copy link
Member

Much appreciated 👍🏻

@ChrisThrasher ChrisThrasher enabled auto-merge (rebase) May 24, 2024 04:39
@ChrisThrasher ChrisThrasher added this to the 3.0 milestone May 24, 2024
@copyrat90
Copy link
Contributor Author

Do you know what it is about the change of standard that causes this to manifest?

No idea. It must be the internal changes in Apple Clang's dependencies of standard library headers, but why it's needed is outside of my knowledge.

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 9218728463

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.557%

Totals Coverage Status
Change from base Build 9217547740: 0.0%
Covered Lines: 11481
Relevant Lines: 19554

💛 - Coveralls

@ChrisThrasher ChrisThrasher merged commit 51676b6 into SFML:master May 24, 2024
113 checks passed
@copyrat90 copyrat90 deleted the fix-macos-cpp23-build branch May 26, 2024 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants