Browse Source

fix: missing `type_traits` include

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.

(cherry picked from commit fbe5262d7b90f307893e347beb00766fbd71ac86)
Klaim (Joël Lamotte) 1 month ago
parent
commit
9d8c520bb9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/godot_cpp/core/defs.hpp

+ 1 - 0
include/godot_cpp/core/defs.hpp

@@ -32,6 +32,7 @@
 
 #include <cstddef>
 #include <cstdint>
+#include <type_traits>
 #include <utility>
 
 namespace godot {