diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 44c3dea804b..e679af4786f 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -18,6 +18,7 @@ #include // all these have already been included by various headers above, but don't rely on indirect includes: +#include #include #include #include @@ -334,6 +335,12 @@ inline QDebugIfHasDebugStream operator<<(QDebug debug, const std::vector +inline QDebugIfHasDebugStream operator<<(QDebug debug, const std::array &array) +{ + return QtPrivate::printSequentialContainer(std::move(debug), "std::array", array); +} + template inline QDebugIfHasDebugStream operator<<(QDebug debug, const std::list &vec) { @@ -431,6 +438,9 @@ QDebug operator<<(QDebug debug, const QVarLengthArray &array); template QDebug operator<<(QDebug debug, const std::vector &vec); +template +QDebug operator<<(QDebug debug, const std::array &array); + template QDebug operator<<(QDebug debug, const std::list &vec);