diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/corelib/io/qdebug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index b1f425e616e..22328e7c858 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -243,6 +243,12 @@ inline QDebugIfHasDebugStream<T> operator<<(QDebug debug, const std::list<T, All return QtPrivate::printSequentialContainer(debug, "std::list", vec); } +template <typename T> +inline QDebugIfHasDebugStream<T> operator<<(QDebug debug, std::initializer_list<T> list) +{ + return QtPrivate::printSequentialContainer(debug, "std::initializer_list", list); +} + template <typename Key, typename T, typename Compare, typename Alloc> inline QDebugIfHasDebugStream<Key, T> operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map) { |
