Skip to content

fix: missing type_traits include #1824

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

Merged
merged 1 commit into from
Aug 5, 2025
Merged

Conversation

Klaim
Copy link
Contributor

@Klaim Klaim commented Aug 1, 2025

Usage of std::is_trivially_constructible in defs.hpp requires including type_traits.

This missing include leads to errors about that type not being found when building with clang++-22 with libc++-22 (which are not released yet), probably they changed the other header's transitive dependencies, making the issue suddenly visible.

@Klaim Klaim marked this pull request as ready for review August 1, 2025 14:50
@Klaim Klaim requested a review from a team as a code owner August 1, 2025 14:50
@sesky4
Copy link

sesky4 commented Aug 4, 2025

same problem here, it happens when I switch from '-std=c++20' to '-std=c++23'

btw, should it be merged into branch 4.4 also ?

@Ivorforce Ivorforce added cherrypick:4.4 bug This has been identified as a bug labels Aug 4, 2025
Copy link
Collaborator

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

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

Thanks!

However, in order to be merged, this will need to be squashed into a single commit, per Godot's pull request workflow:

https://docs.godotengine.org/en/latest/contributing/workflow/pr_workflow.html#the-interactive-rebase

Usage of `std::is_trivially_constructible` in `defs.hpp` requires including `type_traits`. This missing include leads to errors about that type not being found when building with clang++-22 with libc++-22.
@dsnopek dsnopek merged commit e53489b into godotengine:master Aug 5, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This has been identified as a bug cherrypick:4.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants