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

Replace deprecated __has_trivial_* with std::is_trivally_* #7

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

madmiraal
Copy link
Contributor

Clang 15 now produces warnings for some deprecated built-in __has_* methods: llvm/llvm-project@0b89d1d
This PR replaces them with the recommended methods:

  • __has_trivial_constructor(T) -> std::is_trivially_constructible<T>::value
  • __has_trivial_destructor(T) -> std::is_trivially_destructible<T>::value
  • __has_trivial_copy(T) -> std::is_trivially_copyable<T>::value

@madmiraal madmiraal added the bug label Jun 19, 2023
@madmiraal madmiraal self-assigned this Jun 19, 2023
@madmiraal madmiraal merged commit 84921e3 into RebelToolbox:main Jun 19, 2023
@madmiraal madmiraal deleted the fix-_has_trivial-warnings branch June 19, 2023 23:23
@madmiraal madmiraal added PR Type: Bug Fix Your current game should now work as expected. and removed bug labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR Type: Bug Fix Your current game should now work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant