QTypeInfo: Add a missing include

This header uses std::is_trivial_v, which requires including
the <type_traits> header.

When building with PCH enabled (which is the default), this
dependency does get satisfied via the PCH, so no issue is
visible.

This fixes building with recent version of libc++ when configured
with _LIBCPP_REMOVE_TRANSITIVE_INCLUDES (which removes unnecessary
transitive dependencies between the libc++ headers, a configuration
which may become the default in the future), with PCH disabled.

Pick-to: 6.7 6.5 6.2
Change-Id: I5e3ae20e366ed3028b1156cee05bcf2908d6e845
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
bb10
Martin Storsjö 2024-04-04 13:32:31 +03:00
parent 58d5d4b7c2
commit adb49d65e0
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#include <variant>
#include <optional>
#include <tuple>
#include <type_traits>
QT_BEGIN_NAMESPACE