Fix build with Qt 6.9.0 (fixes #469)

Support for std::array was added to QDebug in 6.9.0
This commit is contained in:
Jason E. Hale 2025-04-19 06:28:17 -04:00 committed by GitHub
parent 254652f03e
commit 6e0e6f3bc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,6 +209,7 @@ void waitAndPrint(const ConcurrentQueue &queue, const QueueControlMessagePrinter
printer.printEndWaitingMessage();
}
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
template<typename T, std::size_t size>
QDebug operator<<(QDebug debug, const std::array<T, size> &array)
{
@ -225,6 +226,7 @@ QDebug operator<<(QDebug debug, const std::array<T, size> &array)
return debug;
}
#endif
using RandomEngine = std::mt19937_64;