Skip to content

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

Merged
madmiraal merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-_has_trivial-warnings
Jun 19, 2023
Merged

Replace deprecated __has_trivial_* with std::is_trivally_*#7
madmiraal merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-_has_trivial-warnings

Conversation

@madmiraal
Copy link
Copy Markdown
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