QDebug: add op<< for std::initializer_list
We need it in QtHttpServer. [ChangeLog][QtCore][QDebug] Can now stream std::initializer_list. Change-Id: I3e940215fb4f4778bd782ea9b30960754ac23d47 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
This commit is contained in:
parent
0587d4752d
commit
c84897c137
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user